Skip to content

Commit

Permalink
Fix codacy issue:
Browse files Browse the repository at this point in the history
Add explicit ctor for mst storage impl

Signed-off-by: Fyodor Muratov <[email protected]>
  • Loading branch information
muratovv authored and l4l committed Jan 12, 2018
1 parent 8d1bd63 commit 702a894
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ namespace iroha {
}
// -----------------------------| interface API |-----------------------------

MstStorageStateImpl::MstStorageStateImpl(const CompleterType &completer)
: MstStorage(), completer_(completer), own_state_(MstState::empty(completer_)) {}
MstStorageStateImpl::MstStorageStateImpl(
const CompleterType &completer)
: MstStorage(),
completer_(completer),
own_state_(MstState::empty(completer_)) {}

auto MstStorageStateImpl::applyImpl(ConstPeer &target_peer,
const MstState &new_state)
Expand Down
2 changes: 1 addition & 1 deletion irohad/multi_sig_transactions/storage/mst_storage_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace iroha {

public:
// ----------------------------| interface API |----------------------------
MstStorageStateImpl(const CompleterType &completer);
explicit MstStorageStateImpl(const CompleterType &completer);

auto applyImpl(ConstPeer &target_peer, const MstState &new_state)
-> decltype(apply(target_peer, new_state)) override;
Expand Down

0 comments on commit 702a894

Please sign in to comment.