From 794fdf40a1bc85dded519d7c737f73690e3a6e42 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Sat, 24 Dec 2016 16:00:09 +0100 Subject: AUTOGEN: Generators: Cleanup variable initialization --- Source/cmQtAutoGenerators.cxx | 5 +---- 1 file changed, 1 insertion(+), 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 { -- cgit v0.12