fix clang-tidy issues (#1871)

This commit is contained in:
cyan317
2025-02-03 12:00:59 +00:00
committed by GitHub
parent 2fd16cd582
commit 67c989081d
2 changed files with 2 additions and 2 deletions

View File

@@ -1027,7 +1027,7 @@ createAcceptNftSellerOfferTxWithMetadata(
// offer owner is not the nft's new owner for seller offer, we need to create other nodes for processing new owner
finalFields.setAccountID(ripple::sfOwner, account.value());
node.emplace_back(std::move(finalFields));
node.emplace_back(finalFields);
node.setFieldH256(ripple::sfLedgerIndex, ripple::uint256{offerId});
metaArray.push_back(node);

View File

@@ -479,7 +479,7 @@ TEST_F(NFTHelpersTest, NFTDataFromLedgerObject)
auto const nftDatas = etl::getNFTDataFromObj(
kSEQ,
std::string(static_cast<char const*>(static_cast<void const*>(account.data())), ripple::AccountID::size()),
std::string(reinterpret_cast<char const*>(account.data()), ripple::AccountID::size()),
std::string(static_cast<char const*>(serializerNftPage.getDataPtr()), serializerNftPage.getDataLength())
);