summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-27 22:22:28 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-31 00:19:48 (GMT)
commit7eaab9a957fd8c86641d8400c37c40f27e70c215 (patch)
treeaebe5b969e127ef8845929df46a5152b374de6d7 /Source
parentffa49c23aaab2d1361321b9de32ef4da9e34c3bc (diff)
downloadCMake-7eaab9a957fd8c86641d8400c37c40f27e70c215.zip
CMake-7eaab9a957fd8c86641d8400c37c40f27e70c215.tar.gz
CMake-7eaab9a957fd8c86641d8400c37c40f27e70c215.tar.bz2
clang-tidy: fix `modernize-raw-string-literal` lints
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx2
-rw-r--r--Source/CPack/WiX/cmWIXSourceWriter.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx b/Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx
index 3246e98..78c2208 100644
--- a/Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx
+++ b/Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx
@@ -19,7 +19,7 @@ void cmWIXFeaturesSourceWriter::CreateCMakePackageRegistryEntry(
AddAttribute("Guid", CreateGuidFromComponentId("CM_PACKAGE_REGISTRY"));
std::string registryKey =
- cmStrCat("Software\\Kitware\\CMake\\Packages\\", package);
+ cmStrCat(R"(Software\Kitware\CMake\Packages\)", package);
BeginElement("RegistryValue");
AddAttribute("Root", "HKLM");
diff --git a/Source/CPack/WiX/cmWIXSourceWriter.cxx b/Source/CPack/WiX/cmWIXSourceWriter.cxx
index e13a3e0..54fa011 100644
--- a/Source/CPack/WiX/cmWIXSourceWriter.cxx
+++ b/Source/CPack/WiX/cmWIXSourceWriter.cxx
@@ -144,7 +144,7 @@ std::string cmWIXSourceWriter::CreateGuidFromComponentId(
void cmWIXSourceWriter::WriteXMLDeclaration()
{
- File << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << std::endl;
+ File << R"(<?xml version="1.0" encoding="UTF-8"?>)" << std::endl;
}
void cmWIXSourceWriter::Indent(size_t count)