Pass values by const ref
This commit is contained in:
parent
df5455121c
commit
1e1e254897
@ -61,8 +61,8 @@ public:
|
|||||||
SetParameter(std::string(key), std::string(value));
|
SetParameter(std::string(key), std::string(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetParameter(const std::string key, std::string value) {
|
void SetParameter(const std::string & key, const std::string & value) {
|
||||||
parameters[key] = value;
|
parameters.insert(std::make_pair(key, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -86,4 +86,4 @@ private:
|
|||||||
HashTable<std::string, std::string> parameters;
|
HashTable<std::string, std::string> parameters;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* INI_FILE_H_ */
|
#endif /* INI_FILE_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user