diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-14 20:31:46 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-11 21:57:55 (GMT) |
commit | 8910224950a2b723e0d4fd7c21a326af7fb2e050 (patch) | |
tree | 09eb05962917fc5f205db31ae06b8c105813617e /Source/cmOptionCommand.cxx | |
parent | 7b8725bf8472ebf4781ddd60ef8fcca9c3ad98dd (diff) | |
download | CMake-8910224950a2b723e0d4fd7c21a326af7fb2e050.zip CMake-8910224950a2b723e0d4fd7c21a326af7fb2e050.tar.gz CMake-8910224950a2b723e0d4fd7c21a326af7fb2e050.tar.bz2 |
Replace common loop pattern with cmJoin
Diffstat (limited to 'Source/cmOptionCommand.cxx')
-rw-r--r-- | Source/cmOptionCommand.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmOptionCommand.cxx b/Source/cmOptionCommand.cxx index e505440..60728ea 100644 --- a/Source/cmOptionCommand.cxx +++ b/Source/cmOptionCommand.cxx @@ -34,11 +34,7 @@ bool cmOptionCommand if(argError) { std::string m = "called with incorrect number of arguments: "; - for(size_t i =0; i < args.size(); ++i) - { - m += args[i]; - m += " "; - } + m += cmJoin(args, " "); this->SetError(m); return false; } |