From e0009216ee830e8da023047ed6fe187f48f612d1 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 20 Jan 2025 21:28:25 +0100 Subject: Don't return const ref strings in ctor::configuration::get. Instead return std::string by copy. --- src/configure.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configure.cc') diff --git a/src/configure.cc b/src/configure.cc index 553e368..7a68f03 100644 --- a/src/configure.cc +++ b/src/configure.cc @@ -69,7 +69,7 @@ bool ctor::configuration::has(const std::string& key) const return tools.find(key) != tools.end(); } -const std::string& ctor::configuration::get(const std::string& key, const std::string& default_value) const +std::string ctor::configuration::get(const std::string& key, const std::string& default_value) const { if(key == ctor::cfg::ctor_includedir && ctor::includedir) { -- cgit v1.2.3