From 045e36fe368df43d555ab0e7261207a79fef9bcc Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Mon, 27 Jun 2022 06:21:11 +0400 Subject: cmFindPackageCommand: Replace single-char string literals with char literals --- Source/cmFindPackageCommand.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 5dab179..18a12c4 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 -- cgit v0.12