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));
|
||||
}
|
||||
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user