summaryrefslogtreecommitdiff
path: root/services/incremental/path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'services/incremental/path.cpp')
-rw-r--r--services/incremental/path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/incremental/path.cpp b/services/incremental/path.cpp
index 0d86f2a984d6..338659d40b46 100644
--- a/services/incremental/path.cpp
+++ b/services/incremental/path.cpp
@@ -44,7 +44,7 @@ bool PathLess::operator()(std::string_view l, std::string_view r) const {
PathCharsLess());
}
-static void preparePathComponent(std::string_view path, bool trimFront) {
+static void preparePathComponent(std::string_view& path, bool trimFront) {
if (trimFront) {
while (!path.empty() && path.front() == '/') {
path.remove_prefix(1);