Skip to content

Commit

Permalink
Fix review issues:
Browse files Browse the repository at this point in the history
* fix include brackets
* simplify lambda in hashable

Signed-off-by: Fyodor Muratov <[email protected]>
  • Loading branch information
muratovv authored and lebdron committed Dec 19, 2017
1 parent 42e2a29 commit d44f747
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef IROHA_CRYPTO_HPP
#define IROHA_CRYPTO_HPP

#include <common/types.hpp>
#include "common/types.hpp"
#include <string>

namespace iroha {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef IROHA_HASH_H
#define IROHA_HASH_H

#include <common/types.hpp>
#include "common/types.hpp"
#include "model/block.hpp"
#include "model/query.hpp"
#include "model/transaction.hpp"
Expand Down
2 changes: 1 addition & 1 deletion shared_model/cryptography/hash_providers/sha3_512.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef IROHA_SHARED_MODEL_SHA3_512_HPP
#define IROHA_SHARED_MODEL_SHA3_512_HPP

#include <common/types.hpp>
#include "common/types.hpp"
#include "cryptography/ed25519_sha3_impl/internal/sha3_hash.hpp"

namespace shared_model {
Expand Down
5 changes: 2 additions & 3 deletions shared_model/interfaces/hashable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ namespace shared_model {
}

protected:
detail::LazyInitializer<HashType> hash_ =
detail::LazyInitializer<HashType>(
[this]() { return HashProvider::makeHash(blob()); });
detail::LazyInitializer<HashType> hash_ = detail::makeLazyInitializer(
[this] { return HashProvider::makeHash(blob()); });
};
} // namespace interface
} // namespace shared_model
Expand Down

0 comments on commit d44f747

Please sign in to comment.