From f01bd91336979f6c2f8128f906d72cbe4847c68c Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 16 Mar 2006 16:04:30 -0500 Subject: COMP: Using KWSys auto_ptr to avoid cross-platform problems. --- Source/cmExportLibraryDependencies.cxx | 8 ++++---- 1 file 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 // auto_ptr +#include // cmExecutableCommand bool cmExportLibraryDependenciesCommand::InitialPass(std::vector const& args) @@ -57,16 +57,16 @@ void cmExportLibraryDependenciesCommand::FinalPass() } // Use copy-if-different if not appending. - std::auto_ptr foutPtr; + cmsys::auto_ptr foutPtr; if(append) { - std::auto_ptr ap( + cmsys::auto_ptr ap( new std::ofstream(fname.c_str(), std::ios::app)); foutPtr = ap; } else { - std::auto_ptr ap( + cmsys::auto_ptr ap( new cmGeneratedFileStream(fname.c_str(), true)); ap->SetCopyIfDifferent(true); foutPtr = ap; -- cgit v0.12