From 1e1e254897b3e6e3486863fefa25c2c76d46a09f Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Fri, 9 Aug 2013 12:50:21 +0200 Subject: [PATCH] Pass values by const ref --- Util/IniFile.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Util/IniFile.h b/Util/IniFile.h index 1ed0ca578..26a9ed6c8 100644 --- a/Util/IniFile.h +++ b/Util/IniFile.h @@ -61,8 +61,8 @@ public: SetParameter(std::string(key), std::string(value)); } - void SetParameter(const std::string key, std::string value) { - parameters[key] = value; + void SetParameter(const std::string & key, const std::string & value) { + parameters.insert(std::make_pair(key, value)); } private: @@ -86,4 +86,4 @@ private: HashTable parameters; }; -#endif /* INI_FILE_H_ */ \ No newline at end of file +#endif /* INI_FILE_H_ */