Avoid using KWSys auto_ptr by adopting it ourselves
Replace use of cmsys::auto_ptr with a CM_AUTO_PTR macro that maps to our own implementation adopted from the KWSys auto_ptr implementation. Later we may be able to map CM_AUTO_PTR to std::auto_ptr on compilers that do not warn about it. Automate the client site conversions: git grep -l auto_ptr -- Source/ | grep -v Source/kwsys/ | xargs sed -i \ 's|cmsys::auto_ptr|CM_AUTO_PTR|;s|cmsys/auto_ptr.hxx|cm_auto_ptr.hxx|'
Showing
- Help/manual/cmake-developer.7.rst 4 additions, 3 deletionsHelp/manual/cmake-developer.7.rst
- Source/CMakeLists.txt 1 addition, 0 deletionsSource/CMakeLists.txt
- Source/CPack/WiX/cmCPackWIXGenerator.cxx 1 addition, 1 deletionSource/CPack/WiX/cmCPackWIXGenerator.cxx
- Source/CPack/cmCPackGenerator.cxx 1 addition, 1 deletionSource/CPack/cmCPackGenerator.cxx
- Source/CPack/cpack.cxx 1 addition, 1 deletionSource/CPack/cpack.cxx
- Source/CTest/cmCTestLaunch.cxx 2 additions, 2 deletionsSource/CTest/cmCTestLaunch.cxx
- Source/CTest/cmCTestTestHandler.cxx 1 addition, 1 deletionSource/CTest/cmCTestTestHandler.cxx
- Source/CTest/cmCTestUpdateHandler.cxx 2 additions, 2 deletionsSource/CTest/cmCTestUpdateHandler.cxx
- Source/cmCTest.cxx 4 additions, 4 deletionsSource/cmCTest.cxx
- Source/cmCryptoHash.cxx 8 additions, 8 deletionsSource/cmCryptoHash.cxx
- Source/cmCryptoHash.h 2 additions, 2 deletionsSource/cmCryptoHash.h
- Source/cmCustomCommand.cxx 1 addition, 1 deletionSource/cmCustomCommand.cxx
- Source/cmCustomCommandGenerator.cxx 2 additions, 2 deletionsSource/cmCustomCommandGenerator.cxx
- Source/cmELF.cxx 7 additions, 6 deletionsSource/cmELF.cxx
- Source/cmExportFileGenerator.cxx 5 additions, 5 deletionsSource/cmExportFileGenerator.cxx
- Source/cmExportLibraryDependenciesCommand.cxx 4 additions, 4 deletionsSource/cmExportLibraryDependenciesCommand.cxx
- Source/cmExportTryCompileFileGenerator.cxx 1 addition, 1 deletionSource/cmExportTryCompileFileGenerator.cxx
- Source/cmFileCommand.cxx 7 additions, 7 deletionsSource/cmFileCommand.cxx
- Source/cmFindPackageCommand.cxx 16 additions, 17 deletionsSource/cmFindPackageCommand.cxx
- Source/cmForEachCommand.cxx 3 additions, 4 deletionsSource/cmForEachCommand.cxx
Loading
Please register or sign in to comment