Modernize to C++11: Use for-range loop.

This commit is contained in:
Haojian Wu 2016-07-10 13:32:40 +02:00
commit 55b3f1936f
17 changed files with 66 additions and 71 deletions

View file

@ -820,9 +820,9 @@ ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessWithTimeout(
to_send.append(current_dir.value());
const std::vector<std::string>& argv = atom::AtomCommandLine::argv();
for (auto it = argv.begin(); it != argv.end(); ++it) {
for (const auto& it : argv) {
to_send.push_back(kTokenDelimiter);
to_send.append(*it);
to_send.append(it);
}
// Send the message