mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 20:05:51 +00:00
style: clang-tidy auto fixes (#1972)
Fixes #1971. Co-authored-by: godexsoft <385326+godexsoft@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b31b7633c9
commit
66b3f40268
@@ -121,7 +121,7 @@ public:
|
||||
|
||||
LOG(log_.trace()) << "Inserting transaction = " << sttx.getTransactionID();
|
||||
|
||||
ripple::TxMeta txMeta{sttx.getTransactionID(), ledger.seq, txn.metadata_blob()};
|
||||
ripple::TxMeta const txMeta{sttx.getTransactionID(), ledger.seq, txn.metadata_blob()};
|
||||
|
||||
auto const [nftTxs, maybeNFT] = getNFTDataFromTx(txMeta, sttx);
|
||||
result.nfTokenTxData.insert(result.nfTokenTxData.end(), nftTxs.begin(), nftTxs.end());
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include "etlng/Models.hpp"
|
||||
#include "util/log/Logger.hpp"
|
||||
|
||||
#include <xrpl/basics/base_uint.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
@@ -402,7 +402,7 @@ TEST_F(BackendCassandraTest, Basic)
|
||||
|
||||
ripple::uint256 hash256;
|
||||
EXPECT_TRUE(hash256.parseHex(hashHex));
|
||||
ripple::TxMeta txMeta{hash256, lgrInfoNext.seq, metaBlob};
|
||||
ripple::TxMeta const txMeta{hash256, lgrInfoNext.seq, metaBlob};
|
||||
auto accountsSet = txMeta.getAffectedAccounts();
|
||||
for (auto& a : accountsSet) {
|
||||
affectedAccounts.push_back(a);
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <xrpl/protocol/TxFormats.h>
|
||||
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -32,10 +32,8 @@
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <xrpl/basics/StringUtilities.h>
|
||||
#include <xrpl/basics/base_uint.h>
|
||||
#include <xrpl/protocol/TxFormats.h>
|
||||
#include <xrpl/protocol/UintTypes.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
@@ -203,7 +201,7 @@ TEST_F(
|
||||
});
|
||||
auto const bookBase = getBookBase(createdObj.key);
|
||||
|
||||
[[maybe_unused]] testing::InSequence inSeq;
|
||||
[[maybe_unused]] testing::InSequence const inSeq;
|
||||
EXPECT_CALL(cache_, isFull()).WillRepeatedly(testing::Return(true));
|
||||
EXPECT_CALL(cache_, latestLedgerSequence()).WillRepeatedly(testing::Return(kSEQ));
|
||||
|
||||
@@ -239,7 +237,7 @@ TEST_F(
|
||||
auto const bookBase = getBookBase(deletedObj.key);
|
||||
auto const oldCachedObj = createdObj.data;
|
||||
|
||||
[[maybe_unused]] testing::InSequence inSeq;
|
||||
[[maybe_unused]] testing::InSequence const inSeq;
|
||||
EXPECT_CALL(cache_, isFull()).WillRepeatedly(testing::Return(true));
|
||||
EXPECT_CALL(cache_, latestLedgerSequence()).WillRepeatedly(testing::Return(kSEQ));
|
||||
|
||||
@@ -273,7 +271,7 @@ TEST_F(
|
||||
auto const bookBase = getBookBase(deletedObj.key);
|
||||
auto const oldCachedObj = createdObj.data;
|
||||
|
||||
[[maybe_unused]] testing::InSequence inSeq;
|
||||
[[maybe_unused]] testing::InSequence const inSeq;
|
||||
EXPECT_CALL(cache_, isFull()).WillRepeatedly(testing::Return(true));
|
||||
EXPECT_CALL(cache_, latestLedgerSequence()).WillRepeatedly(testing::Return(kSEQ));
|
||||
|
||||
@@ -378,7 +376,7 @@ TEST_F(SuccessorExtTests, OnInitialDataWithSuccessorsButNotBookDirAndNoSuccessor
|
||||
successorChain.push(firstKey);
|
||||
successorChain.push(secondKey);
|
||||
|
||||
[[maybe_unused]] testing::Sequence inSeq;
|
||||
[[maybe_unused]] testing::Sequence const inSeq;
|
||||
EXPECT_CALL(cache_, isFull()).WillOnce(testing::Return(true));
|
||||
|
||||
EXPECT_CALL(cache_, getSuccessor(testing::_, kSEQ))
|
||||
@@ -417,7 +415,7 @@ TEST_F(SuccessorExtTests, OnInitialDataWithSuccessorsButNotBookDirAndSuccessorsF
|
||||
successorChain.push(firstKey);
|
||||
successorChain.push(secondKey);
|
||||
|
||||
[[maybe_unused]] testing::Sequence inSeq;
|
||||
[[maybe_unused]] testing::Sequence const inSeq;
|
||||
EXPECT_CALL(cache_, isFull()).WillOnce(testing::Return(true));
|
||||
|
||||
EXPECT_CALL(cache_, getSuccessor(testing::_, kSEQ))
|
||||
@@ -460,7 +458,7 @@ TEST_F(SuccessorExtTests, OnInitialDataWithSuccessorsAndBookDirAndSuccessorsForE
|
||||
auto const bookBaseObj = util::createObjectWithBookBase(Object::ModType::Created);
|
||||
auto const bookBase = getBookBase(bookBaseObj.key);
|
||||
|
||||
[[maybe_unused]] testing::Sequence inSeq;
|
||||
[[maybe_unused]] testing::Sequence const inSeq;
|
||||
EXPECT_CALL(cache_, isFull()).WillOnce(testing::Return(true));
|
||||
|
||||
EXPECT_CALL(cache_, getSuccessor(testing::_, kSEQ))
|
||||
|
||||
Reference in New Issue
Block a user