Skip to content

Commit

Permalink
pass maps by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
swick committed Mar 31, 2012
1 parent e35670c commit b7635b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/mwiniimporter/importer.cpp
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion apps/mwiniimporter/importer.hpp
Expand Up @@ -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;
};
Expand Down

0 comments on commit b7635b3

Please sign in to comment.