summaryrefslogtreecommitdiffstats
path: root/Source/cmExportSetMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmExportSetMap.h')
-rw-r--r--Source/cmExportSetMap.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/Source/cmExportSetMap.h b/Source/cmExportSetMap.h
index 0ef07ef..5764c0b 100644
--- a/Source/cmExportSetMap.h
+++ b/Source/cmExportSetMap.h
@@ -8,12 +8,12 @@
#include <map>
#include <string>
-class cmExportSet;
+#include "cmExportSet.h"
/// A name -> cmExportSet map with overloaded operator[].
-class cmExportSetMap : public std::map<std::string, cmExportSet*>
+class cmExportSetMap : public std::map<std::string, cmExportSet>
{
- using derived = std::map<std::string, cmExportSet*>;
+ using derived = std::map<std::string, cmExportSet>;
public:
/** \brief Overloaded operator[].
@@ -21,17 +21,7 @@ public:
* The operator is overloaded because cmExportSet has no default constructor:
* we do not want unnamed export sets.
*/
- cmExportSet* operator[](const std::string& name);
-
- void clear();
-
- cmExportSetMap();
-
- /// Overloaded destructor deletes all member export sets.
- ~cmExportSetMap();
-
- cmExportSetMap(const cmExportSetMap&) = delete;
- cmExportSetMap& operator=(const cmExportSetMap&) = delete;
+ cmExportSet& operator[](const std::string& name);
};
#endif