diff options
Diffstat (limited to 'Source/cmExportSetMap.cxx')
-rw-r--r-- | Source/cmExportSetMap.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmExportSetMap.cxx b/Source/cmExportSetMap.cxx index d267cd3..ac1c66e 100644 --- a/Source/cmExportSetMap.cxx +++ b/Source/cmExportSetMap.cxx @@ -15,13 +15,13 @@ #include "cmAlgorithms.h" #include "cmExportSet.h" -cmExportSet* cmExportSetMap::operator[](const std::string &name) +cmExportSet* cmExportSetMap::operator[](const std::string& name) { std::map<std::string, cmExportSet*>::iterator it = this->find(name); if (it == this->end()) // Export set not found - { + { it = this->insert(std::make_pair(name, new cmExportSet(name))).first; - } + } return it->second; } |