summaryrefslogtreecommitdiffstats
path: root/Source/cmExportLibraryDependencies.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-16 21:04:30 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-16 21:04:30 (GMT)
commitf01bd91336979f6c2f8128f906d72cbe4847c68c (patch)
tree956b7b9b9ebfc16f40cbde420886f00c7d5b4778 /Source/cmExportLibraryDependencies.cxx
parent68ad66444b92f9db60cbd59bb3c91e5dec756651 (diff)
downloadCMake-f01bd91336979f6c2f8128f906d72cbe4847c68c.zip
CMake-f01bd91336979f6c2f8128f906d72cbe4847c68c.tar.gz
CMake-f01bd91336979f6c2f8128f906d72cbe4847c68c.tar.bz2
COMP: Using KWSys auto_ptr to avoid cross-platform problems.
Diffstat (limited to 'Source/cmExportLibraryDependencies.cxx')
-rw-r--r--Source/cmExportLibraryDependencies.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmExportLibraryDependencies.cxx b/Source/cmExportLibraryDependencies.cxx
index 6c56c3c..9cddd0f 100644
--- a/Source/cmExportLibraryDependencies.cxx
+++ b/Source/cmExportLibraryDependencies.cxx
@@ -20,7 +20,7 @@
#include "cmGeneratedFileStream.h"
#include "cmake.h"
-#include <memory> // auto_ptr
+#include <cmsys/auto_ptr.hxx>
// cmExecutableCommand
bool cmExportLibraryDependenciesCommand::InitialPass(std::vector<std::string> const& args)
@@ -57,16 +57,16 @@ void cmExportLibraryDependenciesCommand::FinalPass()
}
// Use copy-if-different if not appending.
- std::auto_ptr<std::ofstream> foutPtr;
+ cmsys::auto_ptr<std::ofstream> foutPtr;
if(append)
{
- std::auto_ptr<std::ofstream> ap(
+ cmsys::auto_ptr<std::ofstream> ap(
new std::ofstream(fname.c_str(), std::ios::app));
foutPtr = ap;
}
else
{
- std::auto_ptr<cmGeneratedFileStream> ap(
+ cmsys::auto_ptr<cmGeneratedFileStream> ap(
new cmGeneratedFileStream(fname.c_str(), true));
ap->SetCopyIfDifferent(true);
foutPtr = ap;