summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioSlnParser.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-08-01 10:57:18 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-08-01 11:33:00 (GMT)
commita693e875db5d0939a316955f513396e533153b6d (patch)
treee063b89a0bb0d69ce7c3f332d7e03a8efec6421b /Source/cmVisualStudioSlnParser.cxx
parent33d9a691306956750bffb10be9d0b17a47c0ec0b (diff)
downloadCMake-a693e875db5d0939a316955f513396e533153b6d.zip
CMake-a693e875db5d0939a316955f513396e533153b6d.tar.gz
CMake-a693e875db5d0939a316955f513396e533153b6d.tar.bz2
Cleanups: Use cmHas{Prefix,Suffix} instead of String{Starts,Ends}With
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;
}