diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-18 16:10:03 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-05 19:44:25 (GMT) |
commit | bd990c803b40e1532cab6b29c75414ca6f30e782 (patch) | |
tree | 6e724661a3b4e195b3d437cf11053f797b8d9bcf /Source/cmQTWrapUICommand.cxx | |
parent | 5fc53f1edb2d003595ef224b31a805c3af0dc0e6 (diff) | |
download | CMake-bd990c803b40e1532cab6b29c75414ca6f30e782.zip CMake-bd990c803b40e1532cab6b29c75414ca6f30e782.tar.gz CMake-bd990c803b40e1532cab6b29c75414ca6f30e782.tar.bz2 |
Remove use of ExpandSourceListArguments.
By now, it is only an expensive copy.
Diffstat (limited to 'Source/cmQTWrapUICommand.cxx')
-rw-r--r-- | Source/cmQTWrapUICommand.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/cmQTWrapUICommand.cxx b/Source/cmQTWrapUICommand.cxx index dce59ef..9b92b1e 100644 --- a/Source/cmQTWrapUICommand.cxx +++ b/Source/cmQTWrapUICommand.cxx @@ -12,19 +12,15 @@ #include "cmQTWrapUICommand.h" // cmQTWrapUICommand -bool cmQTWrapUICommand::InitialPass(std::vector<std::string> const& argsIn, +bool cmQTWrapUICommand::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) { - if(argsIn.size() < 4 ) + if(args.size() < 4 ) { this->SetError("called with incorrect number of arguments"); return false; } - // This command supports source list inputs for compatibility. - std::vector<std::string> args; - this->Makefile->ExpandSourceListArguments(argsIn, args, 3); - // Get the uic and moc executables to run in the custom commands. const char* uic_exe = this->Makefile->GetRequiredDefinition("QT_UIC_EXECUTABLE"); @@ -40,7 +36,7 @@ bool cmQTWrapUICommand::InitialPass(std::vector<std::string> const& argsIn, this->Makefile->GetSafeDefinition(sourceList); // Create rules for all sources listed. - for(std::vector<std::string>::iterator j = (args.begin() + 3); + for(std::vector<std::string>::const_iterator j = (args.begin() + 3); j != args.end(); ++j) { cmSourceFile *curr = this->Makefile->GetSource(*j); |