[CI] clang-tidy auto fixes (#1270)

Fixes #1269. Please review and commit clang-tidy fixes.

Co-authored-by: kuznetsss <kuznetsss@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-03-15 08:59:03 +00:00
committed by GitHub
parent a1243da956
commit 94706bfff9
3 changed files with 5 additions and 5 deletions

View File

@@ -702,8 +702,8 @@ public:
std::optional<ripple::AccountID> lastItem; std::optional<ripple::AccountID> lastItem;
while (liveAccounts.size() < number) { while (liveAccounts.size() < number) {
Statement statement = lastItem ? schema_->selectAccountFromToken.bind(*lastItem, Limit{pageSize}) Statement const statement = lastItem ? schema_->selectAccountFromToken.bind(*lastItem, Limit{pageSize})
: schema_->selectAccountFromBegining.bind(Limit{pageSize}); : schema_->selectAccountFromBegining.bind(Limit{pageSize});
auto const res = executor_.read(yield, statement); auto const res = executor_.read(yield, statement);
if (res) { if (res) {

View File

@@ -58,6 +58,6 @@ TEST_F(BoolTests, Get)
TEST_F(BoolTests, DefaultValues) TEST_F(BoolTests, DefaultValues)
{ {
GaugeInt gauge{"test", ""}; GaugeInt gauge{"test", ""};
Bool realBool{gauge}; Bool const realBool{gauge};
EXPECT_FALSE(realBool); EXPECT_FALSE(realBool);
} }

View File

@@ -130,7 +130,7 @@ TEST_F(GaugeIntTests, multithreadAddAndSubstract)
TEST_F(GaugeIntTests, DefaultValue) TEST_F(GaugeIntTests, DefaultValue)
{ {
GaugeInt realGauge{"some_gauge", ""}; GaugeInt const realGauge{"some_gauge", ""};
EXPECT_EQ(realGauge.value(), 0); EXPECT_EQ(realGauge.value(), 0);
} }
@@ -140,7 +140,7 @@ struct GaugeDoubleTests : ::testing::Test {
TEST_F(GaugeDoubleTests, DefaultValue) TEST_F(GaugeDoubleTests, DefaultValue)
{ {
GaugeDouble realGauge{"some_gauge", ""}; GaugeDouble const realGauge{"some_gauge", ""};
EXPECT_EQ(realGauge.value(), 0.); EXPECT_EQ(realGauge.value(), 0.);
} }