mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 15:19:51 -05:00
replace "std::string::find(x) == 0" with cmHasPrefix()
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "cmMakefile.h"
|
||||
#include "cmMessageType.h"
|
||||
#include "cmSourceFile.h"
|
||||
#include "cmStringAlgorithms.h"
|
||||
#include "cmSystemTools.h"
|
||||
#include "cmXMLParser.h"
|
||||
#include "cmake.h"
|
||||
@@ -2008,7 +2009,7 @@ void cmLocalVisualStudio7Generator::WriteVCProjFooter(
|
||||
fout << "\t<Globals>\n";
|
||||
|
||||
for (std::string const& key : target->GetPropertyKeys()) {
|
||||
if (key.find("VS_GLOBAL_") == 0) {
|
||||
if (cmHasLiteralPrefix(key, "VS_GLOBAL_")) {
|
||||
std::string name = key.substr(10);
|
||||
if (!name.empty()) {
|
||||
/* clang-format off */
|
||||
|
||||
Reference in New Issue
Block a user