summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-06-27 06:21:11 +0400
committerAlex Turbov <i.zaufi@gmail.com>2022-07-11 17:14:01 +0400
commit045e36fe368df43d555ab0e7261207a79fef9bcc (patch)
tree80b7f8b7b77a8ec5e436c536f8a0502697c939ae
parent1bed0be2cd0913a2d0f21c4ff5ebe058e23fdfb5 (diff)
downloadcmake-045e36fe368df43d555ab0e7261207a79fef9bcc.tar.gz
cmFindPackageCommand: Replace single-char string literals with char literals
-rw-r--r--Source/cmFindPackageCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 5dab179831..18a12c45e9 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -1941,7 +1941,7 @@ bool cmFindPackageCommand::SearchDirectory(std::string const& dir)
std::string d = dir;
if (!s.empty()) {
d += s;
- d += "/";
+ d += '/';
}
if (this->CheckDirectory(d)) {
return true;
@@ -2231,9 +2231,9 @@ bool cmFileListGeneratorBase::Consider(std::string const& fullPath,
return false;
}
if (this->Next) {
- return this->Next->Search(fullPath + "/", listing);
+ return this->Next->Search(fullPath + '/', listing);
}
- return listing.Visit(fullPath + "/");
+ return listing.Visit(fullPath + '/');
}
class cmFileListGeneratorFixed : public cmFileListGeneratorBase