diff options
author | Brad King <brad.king@kitware.com> | 2017-09-13 12:34:49 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-13 12:35:05 (GMT) |
commit | 67810849b95acfe036a9a605dbda6f0a3d6f7493 (patch) | |
tree | fa63356603dd00956f306eb92d4ecdbca9e450d4 /Source/cmAddCompileOptionsCommand.cxx | |
parent | a763cffd6b65bbe5572527e39969981bf31d5aca (diff) | |
parent | 7d5095796ab616cf9b709036387bb95ab9984141 (diff) | |
download | CMake-67810849b95acfe036a9a605dbda6f0a3d6f7493.zip CMake-67810849b95acfe036a9a605dbda6f0a3d6f7493.tar.gz CMake-67810849b95acfe036a9a605dbda6f0a3d6f7493.tar.bz2 |
Merge topic 'ranged-for'
7d509579 Meta: modernize old-fashioned loops to range-based `for`.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1249
Diffstat (limited to 'Source/cmAddCompileOptionsCommand.cxx')
-rw-r--r-- | Source/cmAddCompileOptionsCommand.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmAddCompileOptionsCommand.cxx b/Source/cmAddCompileOptionsCommand.cxx index 21a8012..c37fd9a 100644 --- a/Source/cmAddCompileOptionsCommand.cxx +++ b/Source/cmAddCompileOptionsCommand.cxx @@ -13,9 +13,8 @@ bool cmAddCompileOptionsCommand::InitialPass( return true; } - for (std::vector<std::string>::const_iterator i = args.begin(); - i != args.end(); ++i) { - this->Makefile->AddCompileOption(i->c_str()); + for (std::string const& i : args) { + this->Makefile->AddCompileOption(i.c_str()); } return true; } |