summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-01-20 21:28:25 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2025-01-22 08:12:57 +0100
commite0009216ee830e8da023047ed6fe187f48f612d1 (patch)
tree33961e665fda1e9a93c90385f7d65f01963e3398 /src/ctor.h
parent3438b4d3eb272c301e28af7cb72c6d2adb0e6597 (diff)
Don't return const ref strings in ctor::configuration::get. Instead return std::string by copy.
Diffstat (limited to 'src/ctor.h')
-rw-r--r--src/ctor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctor.h b/src/ctor.h
index 3c0b303..6f21aca 100644
--- a/src/ctor.h
+++ b/src/ctor.h
@@ -283,7 +283,7 @@ constexpr auto ctor_libdir = "ctor-libdir";
struct configuration
{
bool has(const std::string& key) const;
- const std::string& get(const std::string& key, const std::string& default_value = {}) const;
+ std::string get(const std::string& key, const std::string& default_value = {}) const;
ctor::toolchain host_toolchain{ctor::toolchain::none};
ctor::arch host_arch{ctor::arch::unknown};