diff options
author | Marc Chevrier <marc.chevrier@sap.com> | 2017-12-19 15:03:41 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@sap.com> | 2018-01-23 09:25:03 (GMT) |
commit | 3073bd1f3deecaaf090202075382e372a3b3656a (patch) | |
tree | b7d4e16f8e35e2f617b7453decf4fb4e58df109e /Source/cmVisualStudio10TargetGenerator.h | |
parent | 78b1c2e09ee5005d75e31c68c1c7b112e4b36d90 (diff) | |
download | CMake-3073bd1f3deecaaf090202075382e372a3b3656a.zip CMake-3073bd1f3deecaaf090202075382e372a3b3656a.tar.gz CMake-3073bd1f3deecaaf090202075382e372a3b3656a.tar.bz2 |
VisualStudio generators: refactoring
Uniformize include directories handling.
Fix memory leaks in class cmVisualStudio10TargetGenerator:
OptionsMap uses now std::unique_ptr.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.h')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h index c346164..2bc5da9 100644 --- a/Source/cmVisualStudio10TargetGenerator.h +++ b/Source/cmVisualStudio10TargetGenerator.h @@ -7,6 +7,7 @@ #include <iosfwd> #include <map> +#include <memory> #include <set> #include <string> #include <vector> @@ -24,6 +25,8 @@ class cmVisualStudioGeneratorOptions; class cmVisualStudio10TargetGenerator { + CM_DISABLE_COPY(cmVisualStudio10TargetGenerator) + public: cmVisualStudio10TargetGenerator(cmGeneratorTarget* target, cmGlobalVisualStudio10Generator* gg); @@ -169,7 +172,7 @@ private: private: typedef cmVisualStudioGeneratorOptions Options; - typedef std::map<std::string, Options*> OptionsMap; + typedef std::map<std::string, std::unique_ptr<Options>> OptionsMap; OptionsMap ClOptions; OptionsMap RcOptions; OptionsMap CudaOptions; |