From 3aac59a341b8164b41272aac920c3fdb8c4bb858 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Jan 2025 11:33:20 -0500 Subject: Pass string parameter by const reference This avoids a cppcheck warning. --- include/sord/sordmm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sord/sordmm.hpp b/include/sord/sordmm.hpp index b1226d6..3a7c0ea 100644 --- a/include/sord/sordmm.hpp +++ b/include/sord/sordmm.hpp @@ -92,7 +92,7 @@ public: serd_env_set_prefix(_c_obj, &name_node, &uri_node); } - inline std::string qualify(std::string uri) const + inline std::string qualify(const std::string& uri) const { const SerdNode uri_node = string_to_node(SERD_URI, uri); SerdNode prefix; -- cgit v1.2.1