From e304bb6c8aa0206c34e3f4db6994d98214dcff39 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 31 Aug 2011 13:01:29 +0300 Subject: [PATCH] Pass config file via const reference in sgauth/sgathstress settings --- projects/sgauth/settings_impl.h | 2 +- projects/sgauthstress/settings.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/sgauth/settings_impl.h b/projects/sgauth/settings_impl.h index 2de52577..9354e18d 100644 --- a/projects/sgauth/settings_impl.h +++ b/projects/sgauth/settings_impl.h @@ -30,7 +30,7 @@ public: SETTINGS_IMPL(); ~SETTINGS_IMPL() {} int Reload() { return 0; } - void SetConfFile(const std::string cf) { confFile = cf; } + void SetConfFile(const std::string & cf) { confFile = cf; } int ReadSettings(); const std::string & GetStrError() const { return strError; } diff --git a/projects/sgauthstress/settings.h b/projects/sgauthstress/settings.h index 01542086..4e4b9be1 100644 --- a/projects/sgauthstress/settings.h +++ b/projects/sgauthstress/settings.h @@ -33,7 +33,7 @@ public: SETTINGS(); ~SETTINGS() {} int Reload() { return 0; } - void SetConfFile(const std::string cf) { confFile = cf; } + void SetConfFile(const std::string & cf) { confFile = cf; } int ReadSettings(); const std::string & GetStrError() const { return strError; } -- 2.43.2