浏览代码

cmPolicies: use character literals where possible

Ben Boeckel 2 年之前
父节点
当前提交
0c8a2c4a86
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmPolicies.cxx

+ 2 - 2
Source/cmPolicies.cxx

@@ -123,10 +123,10 @@ static void DiagnoseAncientPolicies(
 {
   std::ostringstream e;
   e << "The project requests behavior compatible with CMake version \""
-    << majorVer << "." << minorVer << "." << patchVer
+    << majorVer << '.' << minorVer << '.' << patchVer
     << "\", which requires the OLD behavior for some policies:\n";
   for (cmPolicies::PolicyID i : ancient) {
-    e << "  " << idToString(i) << ": " << idToShortDescription(i) << "\n";
+    e << "  " << idToString(i) << ": " << idToShortDescription(i) << '\n';
   }
   e << "However, this version of CMake no longer supports the OLD "
        "behavior for these policies.  "