Fix warnings

Alex
This commit is contained in:
Alex Neundorf 2011-08-17 00:49:12 +02:00
parent add30e9008
commit afb3edc181
1 changed files with 7 additions and 6 deletions

View File

@ -69,8 +69,7 @@ void cmQtAutomoc::SetupAutomocTarget(cmTarget* target)
std::string automocComment = "Automoc for target "; std::string automocComment = "Automoc for target ";
automocComment += targetName; automocComment += targetName;
cmTarget* mocTarget = makefile->AddUtilityCommand(automocTargetName.c_str(), makefile->AddUtilityCommand(automocTargetName.c_str(), true,
true,
workingDirectory.c_str(), depends, workingDirectory.c_str(), depends,
commandLines, false, automocComment.c_str()); commandLines, false, automocComment.c_str());
target->AddUtility(automocTargetName.c_str()); target->AddUtility(automocTargetName.c_str());
@ -713,9 +712,11 @@ bool cmQtAutomoc::GenerateMoc(const std::string& sourceFile,
if (this->Verbose) 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; std::cout << std::endl;
} }