aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers
diff options
context:
space:
mode:
Diffstat (limited to 'src/libfetchers')
-rw-r--r--src/libfetchers/registry.cc2
-rw-r--r--src/libfetchers/registry.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libfetchers/registry.cc b/src/libfetchers/registry.cc
index c2dfa9dc6..f35359d4b 100644
--- a/src/libfetchers/registry.cc
+++ b/src/libfetchers/registry.cc
@@ -124,7 +124,7 @@ std::shared_ptr<Registry> getUserRegistry()
return userRegistry;
}
-std::shared_ptr<Registry> getCustomRegistry(Path p)
+std::shared_ptr<Registry> getCustomRegistry(const Path & p)
{
static auto customRegistry =
Registry::read(p, Registry::Custom);
diff --git a/src/libfetchers/registry.hh b/src/libfetchers/registry.hh
index cde22dff6..260a2c460 100644
--- a/src/libfetchers/registry.hh
+++ b/src/libfetchers/registry.hh
@@ -49,7 +49,7 @@ typedef std::vector<std::shared_ptr<Registry>> Registries;
std::shared_ptr<Registry> getUserRegistry();
-std::shared_ptr<Registry> getCustomRegistry(Path p);
+std::shared_ptr<Registry> getCustomRegistry(const Path & p);
Path getUserRegistryPath();