summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-27 13:16:13 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-30 22:33:07 (GMT)
commitc4f751604b1f76ad8d5215fb14c2838ed8c8a330 (patch)
tree3cb87cc1ff11f5e9bdec1e1cb2ce478e8b409854
parentce549909fbed7ae5567099d0f9ea2e452119181b (diff)
downloadCMake-c4f751604b1f76ad8d5215fb14c2838ed8c8a330.zip
CMake-c4f751604b1f76ad8d5215fb14c2838ed8c8a330.tar.gz
CMake-c4f751604b1f76ad8d5215fb14c2838ed8c8a330.tar.bz2
cmLocalXCodeGenerator: return a default string
Instead of using the `strlen`-based constructor.
-rw-r--r--Source/cmLocalXCodeGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalXCodeGenerator.cxx b/Source/cmLocalXCodeGenerator.cxx
index eb05424..9646e66 100644
--- a/Source/cmLocalXCodeGenerator.cxx
+++ b/Source/cmLocalXCodeGenerator.cxx
@@ -31,7 +31,7 @@ std::string cmLocalXCodeGenerator::GetTargetDirectory(
cmGeneratorTarget const*) const
{
// No per-target directory for this generator (yet).
- return "";
+ return std::string{};
}
void cmLocalXCodeGenerator::AppendFlagEscape(std::string& flags,