diff options
-rw-r--r-- | src/main/cpp/util/file_windows.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/cpp/util/file_windows.cc b/src/main/cpp/util/file_windows.cc index 145d5dae0c..f763f9ef48 100644 --- a/src/main/cpp/util/file_windows.cc +++ b/src/main/cpp/util/file_windows.cc @@ -531,8 +531,7 @@ bool AsShortWindowsPath(const string& path, string* result) { // Join all segments. std::wostringstream builder; bool first = true; - for (std::vector<wstring>::const_reverse_iterator& it = segments.crbegin(); - it != segments.crend(); ++it) { + for (auto it = segments.crbegin(); it != segments.crend(); ++it) { if (!first || !IsRootDirectoryW(wpath)) { builder << L'\\' << *it; } else { |