diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2016-12-24 15:00:09 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-10 11:49:13 (GMT) |
commit | 794fdf40a1bc85dded519d7c737f73690e3a6e42 (patch) | |
tree | 8c72b647b443087fb9bed9f33590c847cffbe60c /Source | |
parent | a1e49bb155132606ed9f590c0b62e68f2e288d0b (diff) | |
download | CMake-794fdf40a1bc85dded519d7c737f73690e3a6e42.zip CMake-794fdf40a1bc85dded519d7c737f73690e3a6e42.tar.gz CMake-794fdf40a1bc85dded519d7c737f73690e3a6e42.tar.bz2 |
AUTOGEN: Generators: Cleanup variable initialization
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index 98b3de3..01cc1b3 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -926,15 +926,12 @@ void cmQtAutoGenerators::ParseForUic( if (this->UicExecutable.empty()) { return; } + const std::string realName = cmsys::SystemTools::GetRealPath(absFilename); cmsys::RegularExpression uiIncludeRegExp( "[\n][ \t]*#[ \t]*include[ \t]+" "[\"<](([^ \">]+/)?ui_[^ \">/]+\\.h)[\">]"); std::string::size_type matchOffset = 0; - - const std::string realName = cmsys::SystemTools::GetRealPath(absFilename); - - matchOffset = 0; if ((strstr(contentsString.c_str(), "ui_") != CM_NULLPTR) && (uiIncludeRegExp.find(contentsString))) { do { |