Skip to content

Commit 67c9890

Browse files
authored
fix clang-tidy issues (#1871)
1 parent 2fd16cd commit 67c9890

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/common/util/TestObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ createAcceptNftSellerOfferTxWithMetadata(
10271027
// offer owner is not the nft's new owner for seller offer, we need to create other nodes for processing new owner
10281028
finalFields.setAccountID(ripple::sfOwner, account.value());
10291029

1030-
node.emplace_back(std::move(finalFields));
1030+
node.emplace_back(finalFields);
10311031
node.setFieldH256(ripple::sfLedgerIndex, ripple::uint256{offerId});
10321032
metaArray.push_back(node);
10331033

tests/unit/etl/NFTHelpersTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ TEST_F(NFTHelpersTest, NFTDataFromLedgerObject)
479479

480480
auto const nftDatas = etl::getNFTDataFromObj(
481481
kSEQ,
482-
std::string(static_cast<char const*>(static_cast<void const*>(account.data())), ripple::AccountID::size()),
482+
std::string(reinterpret_cast<char const*>(account.data()), ripple::AccountID::size()),
483483
std::string(static_cast<char const*>(serializerNftPage.getDataPtr()), serializerNftPage.getDataLength())
484484
);
485485

0 commit comments

Comments
 (0)