Skip to content

Commit

Permalink
[CI] clang-tidy auto fixes (#1270)
Browse files Browse the repository at this point in the history
Fixes #1269. Please review and commit clang-tidy fixes.

Co-authored-by: kuznetsss <kuznetsss@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and kuznetsss authored Mar 15, 2024
1 parent a1243da commit 94706bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/data/CassandraBackend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,8 @@ class BasicCassandraBackend : public BackendInterface {
std::optional<ripple::AccountID> lastItem;

while (liveAccounts.size() < number) {
Statement statement = lastItem ? schema_->selectAccountFromToken.bind(*lastItem, Limit{pageSize})
: schema_->selectAccountFromBegining.bind(Limit{pageSize});
Statement const statement = lastItem ? schema_->selectAccountFromToken.bind(*lastItem, Limit{pageSize})
: schema_->selectAccountFromBegining.bind(Limit{pageSize});

auto const res = executor_.read(yield, statement);
if (res) {
Expand Down
2 changes: 1 addition & 1 deletion unittests/util/prometheus/BoolTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ TEST_F(BoolTests, Get)
TEST_F(BoolTests, DefaultValues)
{
GaugeInt gauge{"test", ""};
Bool realBool{gauge};
Bool const realBool{gauge};
EXPECT_FALSE(realBool);
}
4 changes: 2 additions & 2 deletions unittests/util/prometheus/GaugeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ TEST_F(GaugeIntTests, multithreadAddAndSubstract)

TEST_F(GaugeIntTests, DefaultValue)
{
GaugeInt realGauge{"some_gauge", ""};
GaugeInt const realGauge{"some_gauge", ""};
EXPECT_EQ(realGauge.value(), 0);
}

Expand All @@ -140,7 +140,7 @@ struct GaugeDoubleTests : ::testing::Test {

TEST_F(GaugeDoubleTests, DefaultValue)
{
GaugeDouble realGauge{"some_gauge", ""};
GaugeDouble const realGauge{"some_gauge", ""};
EXPECT_EQ(realGauge.value(), 0.);
}

Expand Down

0 comments on commit 94706bf

Please sign in to comment.