Skip to content

Commit

Permalink
Add rvalue ref type in commands constructors
Browse files Browse the repository at this point in the history
Signed-off-by: Kitsu <[email protected]>
  • Loading branch information
l4l authored and lebdron committed Dec 19, 2017
1 parent 8fe4dcf commit 3abe610
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace shared_model {
detail::makeReferenceGetter(
&iroha::protocol::Command::add_asset_quantity))) {}

explicit AddAssetQuantity(iroha::protocol::Command command)
explicit AddAssetQuantity(iroha::protocol::Command &&command)
: AddAssetQuantity(RefAddAssetQuantity(
std::move(command),
detail::makeReferenceGetter(
Expand Down
2 changes: 1 addition & 1 deletion shared_model/backend/protobuf/commands/proto_command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace shared_model {
explicit Command(const iroha::protocol::Command *command)
: Command(RefCommand(command)) {}

explicit Command(iroha::protocol::Command command)
explicit Command(iroha::protocol::Command &&command)
: Command(RefCommand(std::move(command))) {}

const CommandVariantType &get() const override { return *variant_; }
Expand Down

0 comments on commit 3abe610

Please sign in to comment.