From 50b52a198f05590487fac8480e0e82b7dabb189d Mon Sep 17 00:00:00 2001 From: abitmore Date: Sat, 6 Mar 2021 13:09:03 -0500 Subject: [PATCH] Fix code smells in net/core_messages.hpp --- libraries/net/include/graphene/net/core_messages.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libraries/net/include/graphene/net/core_messages.hpp b/libraries/net/include/graphene/net/core_messages.hpp index 27607832de..41e1d74154 100644 --- a/libraries/net/include/graphene/net/core_messages.hpp +++ b/libraries/net/include/graphene/net/core_messages.hpp @@ -95,13 +95,10 @@ namespace graphene { namespace net { static const core_message_type_enum type; graphene::protocol::precomputable_transaction trx; - trx_message() {} - trx_message(const graphene::protocol::signed_transaction& signed_trx) : + trx_message() = default; + explicit trx_message(graphene::protocol::signed_transaction&& signed_trx) : trx(signed_trx) {} - trx_message(graphene::protocol::signed_transaction&& signed_trx) : - trx(std::move(signed_trx)) - {} }; struct block_message