summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoMocUic.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/cmQtAutoMocUic.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/cmQtAutoMocUic.cxx')
-rw-r--r--Source/cmQtAutoMocUic.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmQtAutoMocUic.cxx b/Source/cmQtAutoMocUic.cxx
index 2aefe8f..0801c24 100644
--- a/Source/cmQtAutoMocUic.cxx
+++ b/Source/cmQtAutoMocUic.cxx
@@ -1894,7 +1894,7 @@ bool cmQtAutoMocUic::Init(cmMakefile* makefile)
std::list<std::string>::iterator it = includes.begin();
while (it != includes.end()) {
std::string const& path = *it;
- if (cmSystemTools::StringStartsWith(path, ppath->c_str())) {
+ if (cmHasPrefix(path, *ppath)) {
MocConst_.IncludePaths.push_back(path);
it = includes.erase(it);
} else {