diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2016-12-29 16:16:12 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-10 11:49:15 (GMT) |
commit | de531432887487943dbe4ae5a1bde762d5582e06 (patch) | |
tree | 1932556f98d52f99e1caf047f518efc9ec6bf4dd /Source/cmQtAutoGenerators.cxx | |
parent | d8e45536fb3637454cf17a638dcd9fc236e94660 (diff) | |
download | CMake-de531432887487943dbe4ae5a1bde762d5582e06.zip CMake-de531432887487943dbe4ae5a1bde762d5582e06.tar.gz CMake-de531432887487943dbe4ae5a1bde762d5582e06.tar.bz2 |
AUTOGEN: Generators: Remove unused variable
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index 4b5e113..c162c87 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -666,13 +666,12 @@ bool cmQtAutoGenerators::ParseContentForMoc( std::string ownMocUnderscoreFile; std::string ownMocHeaderFile; - std::string::size_type matchOffset = 0; // first a simple string check for "moc" is *much* faster than the regexp, // and if the string search already fails, we don't have to try the // expensive regexp - if (strstr(contentsString.c_str(), "moc") != CM_NULLPTR) { + const char* contentChars = contentsString.c_str(); + if (strstr(contentChars, "moc") != CM_NULLPTR) { // Iterate over all included moc files - const char* contentChars = contentsString.c_str(); while (this->RegExpMocInclude.find(contentChars)) { const std::string currentMoc = this->RegExpMocInclude.match(1); // Basename of the current moc include |