From f3b08d506e7ce31f4f791f17108a4512ec0b7582 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 14 Jul 2022 18:07:19 -0700 Subject: [PATCH] const ref conversions Signed-off-by: Rosen Penev --- src/version.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version.cpp b/src/version.cpp index f719f4b0..9f7d0eff 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -105,7 +105,7 @@ static void output(std::ostream& os, const std::vector& greps, const output(os, greps, name, stringStream.str()); } -static bool pushPath(std::string& path, std::vector& libs, std::set& paths) { +static bool pushPath(const std::string& path, std::vector& libs, std::set& paths) { bool result = Exiv2::fileExists(path) && paths.find(path) == paths.end() && path != "/"; if (result) { paths.insert(path);