summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioSlnParser.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-02 14:56:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-08-02 14:56:59 (GMT)
commit7bacf0233be03100b830e65cdd02a0d1fb2c2a13 (patch)
treedd1773c5862f8adf3e18f56dfc36170c3de7e906 /Source/cmVisualStudioSlnParser.cxx
parent94f7d19a983a4d5d9efc5e21d167a0a6a4ba18fa (diff)
parenta693e875db5d0939a316955f513396e533153b6d (diff)
downloadCMake-7bacf0233be03100b830e65cdd02a0d1fb2c2a13.zip
CMake-7bacf0233be03100b830e65cdd02a0d1fb2c2a13.tar.gz
CMake-7bacf0233be03100b830e65cdd02a0d1fb2c2a13.tar.bz2
Merge topic 'use_cmHasPrefix'
a693e875db Cleanups: Use cmHas{Prefix,Suffix} instead of String{Starts,Ends}With Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3637
Diffstat (limited to 'Source/cmVisualStudioSlnParser.cxx')
-rw-r--r--Source/cmVisualStudioSlnParser.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmVisualStudioSlnParser.cxx b/Source/cmVisualStudioSlnParser.cxx
index 9353276..3e7e142 100644
--- a/Source/cmVisualStudioSlnParser.cxx
+++ b/Source/cmVisualStudioSlnParser.cxx
@@ -2,6 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmVisualStudioSlnParser.h"
+#include "cmStringAlgorithms.h"
#include "cmSystemTools.h"
#include "cmVisualStudioSlnData.h"
#include "cmsys/FStream.hxx"
@@ -192,8 +193,8 @@ bool cmVisualStudioSlnParser::State::Process(
assert(!line.IsComment());
switch (this->Stack.top()) {
case FileStateStart:
- if (!cmSystemTools::StringStartsWith(
- line.GetTag().c_str(), "Microsoft Visual Studio Solution File")) {
+ if (!cmHasLiteralPrefix(line.GetTag(),
+ "Microsoft Visual Studio Solution File")) {
result.SetError(ResultErrorInputStructure, this->GetCurrentLine());
return false;
}