diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2021-10-27 18:01:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-04 13:20:48 (GMT) |
commit | b86b6aaa4a27009af4e1457458cf35185be00dc5 (patch) | |
tree | d8410f37e0df5aeb59bad57a6ded0961b63f1721 /Source/CPack/cmCPackCygwinSourceGenerator.cxx | |
parent | 6251239a1c0f0f8342813ff800c184ca2672935b (diff) | |
download | CMake-b86b6aaa4a27009af4e1457458cf35185be00dc5.zip CMake-b86b6aaa4a27009af4e1457458cf35185be00dc5.tar.gz CMake-b86b6aaa4a27009af4e1457458cf35185be00dc5.tar.bz2 |
Source: Cleanup and simplify some code
Diffstat (limited to 'Source/CPack/cmCPackCygwinSourceGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackCygwinSourceGenerator.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/CPack/cmCPackCygwinSourceGenerator.cxx b/Source/CPack/cmCPackCygwinSourceGenerator.cxx index 59df380..a5863ff 100644 --- a/Source/CPack/cmCPackCygwinSourceGenerator.cxx +++ b/Source/CPack/cmCPackCygwinSourceGenerator.cxx @@ -26,9 +26,7 @@ cmCPackCygwinSourceGenerator::cmCPackCygwinSourceGenerator() { } -cmCPackCygwinSourceGenerator::~cmCPackCygwinSourceGenerator() -{ -} +cmCPackCygwinSourceGenerator::~cmCPackCygwinSourceGenerator() = default; int cmCPackCygwinSourceGenerator::InitializeInternal() { @@ -50,7 +48,7 @@ int cmCPackCygwinSourceGenerator::PackageFiles() // Now create a tar file that contains the above .tar.bz2 file // and the CPACK_CYGWIN_PATCH_FILE and CPACK_TOPLEVEL_DIRECTORY // files - std::string compressOutFile = packageDirFileName; + const std::string& compressOutFile = packageDirFileName; // at this point compressOutFile is the full path to // _CPack_Package/.../package-2.5.0.tar.bz2 // we want to create a tar _CPack_Package/.../package-2.5.0-1-src.tar.bz2 |