From fc96297b1a969e332c93f1e8eed15cc79d31dfac Mon Sep 17 00:00:00 2001 From: Andres Correa Casablanca Date: Thu, 17 Jan 2019 14:08:18 +0100 Subject: [PATCH] Apply Unit-e style guidelines Signed-off-by: Andres Correa Casablanca --- src/primitives/txid.h | 6 ++---- src/test/uint256_tests.cpp | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/primitives/txid.h b/src/primitives/txid.h index 3c6fd4ef14..ff05497032 100644 --- a/src/primitives/txid.h +++ b/src/primitives/txid.h @@ -8,10 +8,8 @@ #include -/** - * A TxId is the identifier of a transaction. Currently identical to TxHash but - * differentiated for type safety. - */ +//! A TxId is the identifier of a transaction. Currently identical to TxHash but +//! differentiated for type safety. struct TxId : public uint256 { explicit TxId() : uint256() {} explicit TxId(const uint256 &b) : uint256(b) {} diff --git a/src/test/uint256_tests.cpp b/src/test/uint256_tests.cpp index f3e3b7cebd..7546bfdd3b 100644 --- a/src/test/uint256_tests.cpp +++ b/src/test/uint256_tests.cpp @@ -129,7 +129,7 @@ BOOST_AUTO_TEST_CASE( basics ) // constructors, equality, inequality BOOST_AUTO_TEST_CASE( comparison ) // <= >= < > { uint256 LastL; - for (int i = 0; i < 256; i++) { + for (int i = 0; i < 256; ++i) { uint256 TmpL; *(TmpL.begin() + (i >> 3)) |= 1 << (i & 7); BOOST_CHECK( LastL < TmpL ); @@ -144,7 +144,7 @@ BOOST_AUTO_TEST_CASE( comparison ) // <= >= < > BOOST_CHECK( R2L < MaxL ); uint160 LastS; - for (int i = 0; i < 160; i++) { + for (int i = 0; i < 160; ++i) { uint160 TmpS; *(TmpS.begin() + (i >> 3)) |= 1 << (i & 7); BOOST_CHECK( LastS < TmpS );