Skip to content

Commit 42dd489

Browse files
fix clang-tidy warnings (#49)
Signed-off-by: Alexey-N-Chernyshov <[email protected]>
1 parent fb5347d commit 42dd489

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

core/vm/actor/actor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace fc::vm::actor {
1818
struct Actor {
1919
ContentIdentifier code;
2020
ContentIdentifier head;
21-
uint64_t nonce;
21+
uint64_t nonce{};
2222
BigInt balance;
2323
};
2424

test/testutil/storage/base_leveldb_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace test {
99

10+
BaseLevelDB_Test::BaseLevelDB_Test(const fs::path &path)
11+
: BaseFS_Test(path) {}
12+
1013
void BaseLevelDB_Test::open() {
1114
leveldb::Options options;
1215
options.create_if_missing = true;
@@ -20,9 +23,6 @@ namespace test {
2023
ASSERT_TRUE(db_) << "BaseLevelDB_Test: db is nullptr";
2124
}
2225

23-
BaseLevelDB_Test::BaseLevelDB_Test(fs::path path)
24-
: BaseFS_Test(std::move(path)) {}
25-
2626
void BaseLevelDB_Test::SetUp() {
2727
open();
2828
}

test/testutil/storage/base_leveldb_test.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace test {
1515
struct BaseLevelDB_Test : public BaseFS_Test {
1616
using LevelDB = fc::storage::LevelDB;
1717

18-
BaseLevelDB_Test(fs::path path);
18+
explicit BaseLevelDB_Test(const fs::path &path);
1919

2020
void open();
2121

0 commit comments

Comments
 (0)