aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/stubs
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2017-09-27 10:27:58 -0700
committerGravatar Jisi Liu <jisi.liu@gmail.com>2017-09-27 10:27:58 -0700
commit6d0cf1b3fe35909c22a1d3fc6d1e4d4ab3c02cf2 (patch)
tree2e3f8a7e10a42986e2ce8bfb31a6606ff8f312cb /src/google/protobuf/stubs
parent655cc830d9a22022e89fffdf11ed3cc206e0852c (diff)
Remove ranged based for in io_win32.cc
Diffstat (limited to 'src/google/protobuf/stubs')
-rw-r--r--src/google/protobuf/stubs/io_win32.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/stubs/io_win32.cc b/src/google/protobuf/stubs/io_win32.cc
index 51656a78..7e1cf785 100644
--- a/src/google/protobuf/stubs/io_win32.cc
+++ b/src/google/protobuf/stubs/io_win32.cc
@@ -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])) {