mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 15:42:30 +00:00
clang-tidy: convert loops to range based
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Jari Sundell
parent
bb8d677f6e
commit
0948b5f86a
@@ -95,10 +95,10 @@ std::string
|
||||
OptionParser::create_optstring() {
|
||||
std::string s;
|
||||
|
||||
for (Container::iterator itr = m_container.begin(); itr != m_container.end(); ++itr) {
|
||||
s += itr->first;
|
||||
for (auto& itr : m_container) {
|
||||
s += itr.first;
|
||||
|
||||
if (itr->second.m_useOption)
|
||||
if (itr.second.m_useOption)
|
||||
s += ':';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user