|
@@ -899,12 +899,7 @@ void cmQtAutoGenerators::SetupAutoUicTarget(cmTarget const* target,
|
|
|
std::set<std::string> skipped;
|
|
|
std::vector<std::string> skipVec;
|
|
|
cmSystemTools::ExpandListArgument(this->SkipUic, skipVec);
|
|
|
-
|
|
|
- for (std::vector<std::string>::const_iterator li = skipVec.begin();
|
|
|
- li != skipVec.end(); ++li)
|
|
|
- {
|
|
|
- skipped.insert(*li);
|
|
|
- }
|
|
|
+ skipped.insert(skipVec.begin(), skipVec.end());
|
|
|
|
|
|
makefile->AddDefinition("_skip_uic",
|
|
|
cmLocalGenerator::EscapeForCMake(this->SkipUic).c_str());
|
|
@@ -1622,12 +1617,7 @@ bool cmQtAutoGenerators::RunAutogen(cmMakefile* makefile)
|
|
|
|
|
|
std::vector<std::string> headerFilesVec;
|
|
|
cmSystemTools::ExpandListArgument(this->Headers, headerFilesVec);
|
|
|
- for (std::vector<std::string>::const_iterator it = headerFilesVec.begin();
|
|
|
- it != headerFilesVec.end();
|
|
|
- ++it)
|
|
|
- {
|
|
|
- headerFiles.insert(*it);
|
|
|
- }
|
|
|
+ headerFiles.insert(headerFilesVec.begin(), headerFilesVec.end());
|
|
|
|
|
|
// key = moc source filepath, value = moc output filename
|
|
|
std::map<std::string, std::string> notIncludedMocs;
|
|
@@ -2188,24 +2178,12 @@ bool cmQtAutoGenerators::GenerateMoc(const std::string& sourceFile,
|
|
|
|
|
|
std::vector<std::string> command;
|
|
|
command.push_back(this->MocExecutable);
|
|
|
- for (std::list<std::string>::const_iterator it = this->MocIncludes.begin();
|
|
|
- it != this->MocIncludes.end();
|
|
|
- ++it)
|
|
|
- {
|
|
|
- command.push_back(*it);
|
|
|
- }
|
|
|
- for(std::list<std::string>::const_iterator it=this->MocDefinitions.begin();
|
|
|
- it != this->MocDefinitions.end();
|
|
|
- ++it)
|
|
|
- {
|
|
|
- command.push_back(*it);
|
|
|
- }
|
|
|
- for(std::vector<std::string>::const_iterator it=this->MocOptions.begin();
|
|
|
- it != this->MocOptions.end();
|
|
|
- ++it)
|
|
|
- {
|
|
|
- command.push_back(*it);
|
|
|
- }
|
|
|
+ command.insert(command.end(),
|
|
|
+ this->MocIncludes.begin(), this->MocIncludes.end());
|
|
|
+ command.insert(command.end(),
|
|
|
+ this->MocDefinitions.begin(), this->MocDefinitions.end());
|
|
|
+ command.insert(command.end(),
|
|
|
+ this->MocOptions.begin(), this->MocOptions.end());
|
|
|
#ifdef _WIN32
|
|
|
command.push_back("-DWIN32");
|
|
|
#endif
|
|
@@ -2277,12 +2255,7 @@ bool cmQtAutoGenerators::GenerateUi(const std::string& realName,
|
|
|
cmSystemTools::ExpandListArgument(optionIt->second, fileOpts);
|
|
|
this->MergeUicOptions(opts, fileOpts, this->QtMajorVersion == "5");
|
|
|
}
|
|
|
- for(std::vector<std::string>::const_iterator optIt = opts.begin();
|
|
|
- optIt != opts.end();
|
|
|
- ++optIt)
|
|
|
- {
|
|
|
- command.push_back(*optIt);
|
|
|
- }
|
|
|
+ command.insert(command.end(), opts.begin(), opts.end());
|
|
|
|
|
|
command.push_back("-o");
|
|
|
command.push_back(this->Builddir + ui_output_file);
|