diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-22 18:53:54 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-29 17:39:29 (GMT) |
commit | 64c0702f91fb1e9ff8f6afd55d8fc79003426d6b (patch) | |
tree | 0d8c59ebed13c719e2c2e7eef33f5b3147ab3bd3 /Source/cmGlobalVisualStudio7Generator.cxx | |
parent | 1b929ba8e41b49ab9c30c095bf9585b3ab85656b (diff) | |
download | CMake-64c0702f91fb1e9ff8f6afd55d8fc79003426d6b.zip CMake-64c0702f91fb1e9ff8f6afd55d8fc79003426d6b.tar.gz CMake-64c0702f91fb1e9ff8f6afd55d8fc79003426d6b.tar.bz2 |
clang-tidy: fix `readability-static-accessed-through-instance` lints
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index a730f28..df212cb 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -378,7 +378,8 @@ void cmGlobalVisualStudio7Generator::WriteTargetConfigurations( // On VS 19 and above, always map .NET SDK projects to "Any CPU". if (target->IsDotNetSdkTarget() && this->GetVersion() >= VSVersion::VS16 && - !this->IsReservedTarget(target->GetName())) { + !cmGlobalVisualStudio7Generator::IsReservedTarget( + target->GetName())) { mapping = "Any CPU"; } this->WriteProjectConfigurations(fout, *vcprojName, *target, configs, @@ -515,7 +516,7 @@ std::string cmGlobalVisualStudio7Generator::ConvertToSolutionPath( // use windows slashes. std::string d = path; std::string::size_type pos = 0; - while ((pos = d.find('/', pos)) != d.npos) { + while ((pos = d.find('/', pos)) != std::string::npos) { d[pos++] = '\\'; } return d; |