Permalink
Browse files

pass maps by reference

  • Loading branch information...
1 parent e35670c commit b7635b3d4a12bacf31a0c4d7aad92bfaacd2b711 @swick committed Mar 31, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 apps/mwiniimporter/importer.cpp
  2. +1 −1 apps/mwiniimporter/importer.hpp
@@ -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;
};

0 comments on commit b7635b3

Please sign in to comment.