Skip to content

Commit

Permalink
* Change uint with auto in Tx.Operator==
Browse files Browse the repository at this point in the history
* Add todo for future change cycle
  • Loading branch information
muratovv authored and lebdron committed Jul 19, 2017
1 parent d58623a commit bb4751a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion irohad/model/impl/model_operators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ namespace iroha {
/* Transaction */
bool Transaction::operator==(const Transaction &rhs) const {
if (rhs.commands.size() != commands.size()) return false;
for (uint i = 0; i < rhs.commands.size(); i++){

// todo change for cycle to comparison with predicate
for (auto i = 0; i < rhs.commands.size(); i++){
if (*rhs.commands.at(i) != *commands.at(i)) return false;
}
return rhs.tx_counter == tx_counter && rhs.signatures == signatures &&
Expand Down

0 comments on commit bb4751a

Please sign in to comment.