summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 19:42:54 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 17:39:45 (GMT)
commitd64adb9267213c0031b376633b70707ddcfc9ba6 (patch)
treef9a18fc6b412e24bbba34e6d3b8203441b305309 /Source/cmGlobalVisualStudio10Generator.cxx
parentf76ebc3c05fdb7e90673dd98392a01c41f056b18 (diff)
downloadCMake-d64adb9267213c0031b376633b70707ddcfc9ba6.zip
CMake-d64adb9267213c0031b376633b70707ddcfc9ba6.tar.gz
CMake-d64adb9267213c0031b376633b70707ddcfc9ba6.tar.bz2
clang-tidy: fix `readability-string-compare` lints
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index 6931301..6154d8e 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -1140,7 +1140,7 @@ cmGlobalVisualStudio10Generator::GenerateBuildCommand(
std::string extension =
cmSystemTools::GetFilenameLastExtension(proj->GetRelativePath());
extension = cmSystemTools::LowerCase(extension);
- if (extension.compare(".csproj") == 0) {
+ if (extension == ".csproj") {
// Use correct platform name
platform =
slnData.GetConfigurationTarget(tname, plainConfig, platform);