From 219e00f3b8caec38a9c8fbb4d70e33455aba5a92 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 13 Oct 2022 09:00:11 +0200 Subject: Optimize by going straight to public variable pool where applicable --- libbuild2/config/utility.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/config/utility.hxx') diff --git a/libbuild2/config/utility.hxx b/libbuild2/config/utility.hxx index 98d7ec0..1e2ff53 100644 --- a/libbuild2/config/utility.hxx +++ b/libbuild2/config/utility.hxx @@ -435,7 +435,7 @@ namespace build2 const V* cv ( cast_null ( lookup_config (rs, - rs.var_pool ().insert ("config." + var), + rs.var_pool (true).insert ("config." + var), std::forward (default_value)))); // VC14 value& v (bs.assign (move (var))); @@ -453,7 +453,7 @@ namespace build2 const V* cv ( cast_null ( lookup_config (rs, - rs.var_pool ().insert ("config." + var), + rs.var_pool (true).insert ("config." + var), std::forward (default_value)))); // VC14 value& v (bs.append (move (var))); -- cgit v1.1