diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-11-20 23:56:36 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-11-20 23:56:36 (GMT) |
commit | ddc052052b05d6daea0791efd2e1b97a9349a5e9 (patch) | |
tree | e4452d05e36f1083cd2a804334011dacd9af50ca /Source/cmGraphVizWriter.cxx | |
parent | 8faf4e93801a025d4cb17d2ef12437e5554798b1 (diff) | |
download | CMake-ddc052052b05d6daea0791efd2e1b97a9349a5e9.zip CMake-ddc052052b05d6daea0791efd2e1b97a9349a5e9.tar.gz CMake-ddc052052b05d6daea0791efd2e1b97a9349a5e9.tar.bz2 |
Always use the auto_ptr from cmsys.
This is for consistency throughout cmake. The cmsys version exists
becaues uses of auto_ptr types as return types does not work with
some implementations in ancient compilers.
Diffstat (limited to 'Source/cmGraphVizWriter.cxx')
-rw-r--r-- | Source/cmGraphVizWriter.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmGraphVizWriter.cxx b/Source/cmGraphVizWriter.cxx index 15bad52..4816da9 100644 --- a/Source/cmGraphVizWriter.cxx +++ b/Source/cmGraphVizWriter.cxx @@ -15,8 +15,6 @@ #include "cmGlobalGenerator.h" #include "cmGeneratedFileStream.h" -#include <memory> - static const char* getShapeForTarget(const cmTarget* target) @@ -67,7 +65,7 @@ void cmGraphVizWriter::ReadSettings(const char* settingsFileName, cmake cm; cmGlobalGenerator ggi; ggi.SetCMakeInstance(&cm); - std::auto_ptr<cmLocalGenerator> lg(ggi.CreateLocalGenerator()); + cmsys::auto_ptr<cmLocalGenerator> lg(ggi.CreateLocalGenerator()); cmMakefile *mf = lg->GetMakefile(); const char* inFileName = settingsFileName; |