diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2016-12-27 09:51:14 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-10 11:49:13 (GMT) |
commit | 2cfcdf757d032cdea8b980792007a6f9d749e6fb (patch) | |
tree | 2668e28c6a0896c3dfd4d63f5dc919ab28836f6b /Source | |
parent | 2f67aef23d4192fadb222dc79311fb5ffbbc36ce (diff) | |
download | CMake-2cfcdf757d032cdea8b980792007a6f9d749e6fb.zip CMake-2cfcdf757d032cdea8b980792007a6f9d749e6fb.tar.gz CMake-2cfcdf757d032cdea8b980792007a6f9d749e6fb.tar.bz2 |
AUTOGEN: Generators: Variable rename
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index 1ada434..6543ac6 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -646,7 +646,7 @@ bool cmQtAutoGenerators::ParseCppFile( std::string basename = cmsys::SystemTools::GetFilenameWithoutLastExtension(currentMoc); - const bool moc_style = cmHasLiteralPrefix(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. @@ -654,7 +654,7 @@ bool cmQtAutoGenerators::ParseCppFile( // a Q_OBJECT macro in the current source file, if it contains the // macro we generate the moc file from the source file. // Q_OBJECT - if (moc_style) { + if (mocUnderscoreStyle) { // basename should be the part of the moc filename used for // finding the correct header, so we need to remove the moc_ part basename = basename.substr(4); |