From d2248c5834c0e99e8f974dfaf6fcb0186b6fde47 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 3 Dec 2022 13:46:21 +0000 Subject: [PATCH] [Minor] Try to fix build --- src/libserver/symcache/symcache_item.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx index cfe8b4c14..258e873ff 100644 --- a/src/libserver/symcache/symcache_item.cxx +++ b/src/libserver/symcache/symcache_item.cxx @@ -454,7 +454,7 @@ cache_item::add_augmentation(const symcache &cache, std::string_view augmentatio return false; } - return augmentations.try_emplace(std::string{augmentation}, known_info.weight).second; + return augmentations.try_emplace(augmentation, known_info.weight).second; } else { if (!value.has_value()) { @@ -465,7 +465,7 @@ cache_item::add_augmentation(const symcache &cache, std::string_view augmentatio } if (known_info.value_type == augmentation_value_type::STRING_VALUE) { - return augmentations.try_emplace(std::string{augmentation}, std::string{value.value()}, + return augmentations.try_emplace(augmentation, std::string{value.value()}, known_info.weight).second; } else if (known_info.value_type == augmentation_value_type::NUMBER_VALUE) { @@ -482,7 +482,7 @@ cache_item::add_augmentation(const symcache &cache, std::string_view augmentatio return false; } - return augmentations.try_emplace(std::string{augmentation}, num, + return augmentations.try_emplace(augmentation, num, known_info.weight).second; } } @@ -490,7 +490,7 @@ cache_item::add_augmentation(const symcache &cache, std::string_view augmentatio else { msg_debug_cache("added unknown augmentation %s for symbol %s", "unknown", augmentation.data(), symbol.data()); - return augmentations.try_emplace(std::string{augmentation}, 0).second; + return augmentations.try_emplace(augmentation, 0).second; } // Should not be reached -- 2.39.5