Commit 6d0cf1b3 authored by Jisi Liu's avatar Jisi Liu

Remove ranged based for in io_win32.cc

parent 655cc830
......@@ -195,12 +195,12 @@ string normalize(string path) {
// Join all segments.
bool first = true;
std::ostringstream result;
for (const auto& s : segments) {
for (int i = 0; i < segments.size(); ++i) {
if (!first) {
result << '\\';
}
first = false;
result << s;
result << segments[i];
}
// Preserve trailing separator if the input contained it.
if (!path.empty() && is_separator(path[path.size() - 1])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment