summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioGeneratorOptions.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-27 18:35:46 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-28 00:00:59 (GMT)
commit809248a0c9f3c2c203399d4cefe10a23cfc53add (patch)
treead89e2f35014818ec4260bad1d9f85176c5df56c /Source/cmVisualStudioGeneratorOptions.cxx
parent7137b1783549fb33fcc09eabdd0d77511d36c23b (diff)
downloadCMake-809248a0c9f3c2c203399d4cefe10a23cfc53add.zip
CMake-809248a0c9f3c2c203399d4cefe10a23cfc53add.tar.gz
CMake-809248a0c9f3c2c203399d4cefe10a23cfc53add.tar.bz2
strings: use character literals where possible
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.cxx')
-rw-r--r--Source/cmVisualStudioGeneratorOptions.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx
index 80e37bd..6188134 100644
--- a/Source/cmVisualStudioGeneratorOptions.cxx
+++ b/Source/cmVisualStudioGeneratorOptions.cxx
@@ -361,7 +361,7 @@ void cmVisualStudioGeneratorOptions::OutputPreprocessorDefinitions(
std::ostringstream oss;
if (this->Version != cmGlobalVisualStudioGenerator::VSVersion::VS9) {
- oss << "%(" << tag << ")";
+ oss << "%(" << tag << ')';
}
auto de = cmRemoveDuplicates(this->Defines);
for (std::string const& di : cmMakeRange(this->Defines.cbegin(), de)) {
@@ -411,7 +411,7 @@ void cmVisualStudioGeneratorOptions::OutputAdditionalIncludeDirectories(
}
if (lang == "ASM_NASM"_s) {
- include += "\\";
+ include += '\\';
}
// Escape this include for the MSBuild.
@@ -428,7 +428,7 @@ void cmVisualStudioGeneratorOptions::OutputAdditionalIncludeDirectories(
}
if (this->Version != cmGlobalVisualStudioGenerator::VSVersion::VS9) {
- oss << sep << "%(" << tag << ")";
+ oss << sep << "%(" << tag << ')';
}
this->OutputFlag(fout, indent, tag, oss.str());