pass maps by reference

This commit is contained in:
Sebastian Wick 2012-03-31 14:34:00 +02:00
parent e35670c6cb
commit b7635b3d4a
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
};