Override previous setting, std::unordered_map::insert() does not.

pull/41/head
jackun 4 years ago
parent 9d0b766cda
commit 67eab673d8
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -29,11 +29,11 @@ void parseConfigLine(std::string line){
if(equal==std::string::npos)
{
if (!line.empty())
options.insert({line, "1"});
options[line] = "1";
return;
}
options.insert({line.substr(0,equal), line.substr(equal+1)});
options[line.substr(0, equal)] = line.substr(equal+1);
}
void parseConfigFile() {

Loading…
Cancel
Save