diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-27 18:35:46 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-28 00:00:59 (GMT) |
commit | 809248a0c9f3c2c203399d4cefe10a23cfc53add (patch) | |
tree | ad89e2f35014818ec4260bad1d9f85176c5df56c /Source/CPack/cmCPackCygwinBinaryGenerator.cxx | |
parent | 7137b1783549fb33fcc09eabdd0d77511d36c23b (diff) | |
download | CMake-809248a0c9f3c2c203399d4cefe10a23cfc53add.zip CMake-809248a0c9f3c2c203399d4cefe10a23cfc53add.tar.gz CMake-809248a0c9f3c2c203399d4cefe10a23cfc53add.tar.bz2 |
strings: use character literals where possible
Diffstat (limited to 'Source/CPack/cmCPackCygwinBinaryGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackCygwinBinaryGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CPack/cmCPackCygwinBinaryGenerator.cxx b/Source/CPack/cmCPackCygwinBinaryGenerator.cxx index fabf4c5..fcb79a2 100644 --- a/Source/CPack/cmCPackCygwinBinaryGenerator.cxx +++ b/Source/CPack/cmCPackCygwinBinaryGenerator.cxx @@ -44,9 +44,9 @@ int cmCPackCygwinBinaryGenerator::PackageFiles() cmGeneratedFileStream ofs(manifestFile); for (std::string const& file : files) { // remove the temp dir and replace with /usr - ofs << file.substr(tempdir.size()) << "\n"; + ofs << file.substr(tempdir.size()) << '\n'; } - ofs << manifest << "\n"; + ofs << manifest << '\n'; } // add the manifest file to the list of all files files.push_back(manifestFile); @@ -60,7 +60,7 @@ const char* cmCPackCygwinBinaryGenerator::GetOutputExtension() this->OutputExtension = "-"; cmValue patchNumber = this->GetOption("CPACK_CYGWIN_PATCH_NUMBER"); if (!patchNumber) { - this->OutputExtension += "1"; + this->OutputExtension += '1'; cmCPackLogger(cmCPackLog::LOG_WARNING, "CPACK_CYGWIN_PATCH_NUMBER not specified using 1" << std::endl); |