diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-08-16 22:49:12 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-08-16 22:49:12 (GMT) |
commit | afb3edc18149f48be6e1690c7d9b1c8f6816a056 (patch) | |
tree | 88d93eeaf27e241fe90bf55a349011ba314c3818 /Source/cmQtAutomoc.cxx | |
parent | add30e9008fcb4d5277692958aac7f933539f983 (diff) | |
download | CMake-afb3edc18149f48be6e1690c7d9b1c8f6816a056.zip CMake-afb3edc18149f48be6e1690c7d9b1c8f6816a056.tar.gz CMake-afb3edc18149f48be6e1690c7d9b1c8f6816a056.tar.bz2 |
Fix warnings
Alex
Diffstat (limited to 'Source/cmQtAutomoc.cxx')
-rw-r--r-- | Source/cmQtAutomoc.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmQtAutomoc.cxx b/Source/cmQtAutomoc.cxx index 7e50064..df09f37 100644 --- a/Source/cmQtAutomoc.cxx +++ b/Source/cmQtAutomoc.cxx @@ -69,10 +69,9 @@ void cmQtAutomoc::SetupAutomocTarget(cmTarget* target) std::string automocComment = "Automoc for target "; automocComment += targetName; - cmTarget* mocTarget = makefile->AddUtilityCommand(automocTargetName.c_str(), - true, - workingDirectory.c_str(), depends, - commandLines, false, automocComment.c_str()); + makefile->AddUtilityCommand(automocTargetName.c_str(), true, + workingDirectory.c_str(), depends, + commandLines, false, automocComment.c_str()); target->AddUtility(automocTargetName.c_str()); // configure a file to get all information to automoc at buildtime: @@ -713,9 +712,11 @@ bool cmQtAutomoc::GenerateMoc(const std::string& sourceFile, if (this->Verbose) { - for(int i=0; i<command.size(); i++) + for(std::vector<cmStdString>::const_iterator cmdIt = command.begin(); + cmdIt != command.end(); + ++cmdIt) { - std::cout << command[i] << " "; + std::cout << *cmdIt << " "; } std::cout << std::endl; } |