diff --git a/src/storage/CompositeStorage.cxx b/src/storage/CompositeStorage.cxx index 9ef85f22e..5bd5318e3 100644 --- a/src/storage/CompositeStorage.cxx +++ b/src/storage/CompositeStorage.cxx @@ -117,7 +117,7 @@ CompositeStorage::Directory::Make(const char *uri) { Directory *directory = this; while (*uri != 0) { - const std::string name = NextSegment(uri); + auto name = NextSegment(uri); auto i = directory->children.emplace(std::move(name), Directory()); directory = &i.first->second;