Pass values by const ref

This commit is contained in:
Dennis Luxen 2013-08-09 12:50:21 +02:00
parent df5455121c
commit 1e1e254897

View File

@ -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<std::string, std::string> parameters;
};
#endif /* INI_FILE_H_ */
#endif /* INI_FILE_H_ */