summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-12-24 15:00:09 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-01-10 11:49:13 (GMT)
commit794fdf40a1bc85dded519d7c737f73690e3a6e42 (patch)
tree8c72b647b443087fb9bed9f33590c847cffbe60c /Source/cmQtAutoGenerators.cxx
parenta1e49bb155132606ed9f590c0b62e68f2e288d0b (diff)
downloadCMake-794fdf40a1bc85dded519d7c737f73690e3a6e42.zip
CMake-794fdf40a1bc85dded519d7c737f73690e3a6e42.tar.gz
CMake-794fdf40a1bc85dded519d7c737f73690e3a6e42.tar.bz2
AUTOGEN: Generators: Cleanup variable initialization
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r--Source/cmQtAutoGenerators.cxx5
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 {