diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-12-03 13:46:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-12-03 13:46:21 +0000 |
commit | d2248c5834c0e99e8f974dfaf6fcb0186b6fde47 (patch) | |
tree | 581c17e80780e0fa7c8e80ce3dbe9abb6e342b6f | |
parent | aa2b1b4ef6ca76b816c451401f5b35bf830652f3 (diff) | |
download | rspamd-d2248c5834c0e99e8f974dfaf6fcb0186b6fde47.tar.gz rspamd-d2248c5834c0e99e8f974dfaf6fcb0186b6fde47.zip |
[Minor] Try to fix build
-rw-r--r-- | src/libserver/symcache/symcache_item.cxx | 8 |
1 files 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 |