From 52e4e3966d4ccc3b6ed5f7937095ca4e8be6accf Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 22 May 2020 18:56:37 -0500 Subject: [PATCH] Make gcc happy --- plugins/chain_plugin/account_query_db.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/chain_plugin/account_query_db.cpp b/plugins/chain_plugin/account_query_db.cpp index 02361cf2ba3..d91c00c0129 100644 --- a/plugins/chain_plugin/account_query_db.cpp +++ b/plugins/chain_plugin/account_query_db.cpp @@ -164,7 +164,8 @@ namespace eosio::chain_apis { // for each key, add this permission info's non-owning reference to the bimap for keys for (const auto& k: po.auth.keys) { - key_bimap.insert(key_bimap_t::value_type {{(chain::public_key_type)k.key, k.weight}, pi}); + chain::public_key_type key = k.key; + key_bimap.insert(key_bimap_t::value_type {{std::move(key), k.weight}, pi}); } }