pass maps by reference

actorid
Sebastian Wick 13 years ago
parent e35670c6cb
commit b7635b3d4a

@ -87,7 +87,7 @@ void MwIniImporter::merge(strmap &cfg, strmap &ini) {
}
}
bool MwIniImporter::specialMerge(std::string cfgKey, std::string iniKey, strmap cfg, strmap ini) {
bool MwIniImporter::specialMerge(std::string cfgKey, std::string iniKey, strmap &cfg, strmap &ini) {
return false;
}

@ -22,7 +22,7 @@ class MwIniImporter {
void writeToFile(std::string file, strmap &cfg);
private:
bool specialMerge(std::string cfgKey, std::string iniKey, strmap cfg, strmap ini);
bool specialMerge(std::string cfgKey, std::string iniKey, strmap &cfg, strmap &ini);
bool mVerbose;
strmap mMergeMap;
};

Loading…
Cancel
Save