summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-11-13 23:04:57 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-11-18 22:20:40 (GMT)
commit3bd59b6014c13a3f980b9988ebfca91e0a2936c0 (patch)
treefff304c2916d0641b422436f097e83e8388c7fef /Source/cmQtAutoGenerators.cxx
parentbf00f5287b2d0cc2dbd175ab25e7cafbda944f23 (diff)
downloadCMake-3bd59b6014c13a3f980b9988ebfca91e0a2936c0.zip
CMake-3bd59b6014c13a3f980b9988ebfca91e0a2936c0.tar.gz
CMake-3bd59b6014c13a3f980b9988ebfca91e0a2936c0.tar.bz2
QtAutogen: Use cmHasLiteral{Prefix,Suffix} where possible.
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r--Source/cmQtAutoGenerators.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index 3d6445d..f2ed016 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/Source/cmQtAutoGenerators.cxx
@@ -1479,7 +1479,7 @@ void cmQtAutoGenerators::Init()
{
const std::string &path = *it;
this->MocIncludes.push_back("-I" + path);
- if (this->EndsWith(path, ".framework/Headers"))
+ if (cmHasLiteralSuffix(path, ".framework/Headers"))
{
// Go up twice to get to the framework root
std::vector<std::string> pathComponents;
@@ -1771,7 +1771,7 @@ void cmQtAutoGenerators::ParseCppFile(const std::string& absFilename,
std::string basename = cmsys::SystemTools::
GetFilenameWithoutLastExtension(currentMoc);
- const bool moc_style = this->StartsWith(basename, "moc_");
+ const bool moc_style = cmHasLiteralPrefix(basename, "moc_");
// If the moc include is of the moc_foo.cpp style we expect
// the Q_OBJECT class declaration in a header file.
@@ -1953,7 +1953,7 @@ void cmQtAutoGenerators::StrictParseCppFile(const std::string& absFilename,
std::string basename = cmsys::SystemTools::
GetFilenameWithoutLastExtension(currentMoc);
- const bool mocUnderscoreStyle = this->StartsWith(basename, "moc_");
+ const bool mocUnderscoreStyle = cmHasLiteralPrefix(basename, "moc_");
// If the moc include is of the moc_foo.cpp style we expect
// the Q_OBJECT class declaration in a header file.