summaryrefslogtreecommitdiff
path: root/lib/resolve_path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/resolve_path.cpp')
-rw-r--r--lib/resolve_path.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/resolve_path.cpp b/lib/resolve_path.cpp
index 083b1007..768876c9 100644
--- a/lib/resolve_path.cpp
+++ b/lib/resolve_path.cpp
@@ -508,12 +508,9 @@ void getDirectoryAliasesRecursive(const Zstring& dirname, std::set<Zstring, Less
return startsWith(path, prefix);
#endif
};
- std::for_each(envToDir.begin(), envToDir.end(),
- [&](const std::pair<Zstring, Zstring>& entry)
- {
+ for (const auto& entry : envToDir)
if (pathStartsWith(dirname, entry.second))
output.insert(MACRO_SEP + entry.first + MACRO_SEP + (dirname.c_str() + entry.second.size()));
- });
}
//4. replace (all) macros: %USERPROFILE% -> C:\Users\<user>
bgstack15