From: Maxim Mamontov Date: Wed, 31 Aug 2011 10:01:29 +0000 (+0300) Subject: Pass config file via const reference in sgauth/sgathstress settings X-Git-Tag: 2.408-alpha~18 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/e304bb6c8aa0206c34e3f4db6994d98214dcff39 Pass config file via const reference in sgauth/sgathstress settings --- 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; }