chore: Fixes after tidy v22 update (#3108)

This commit is contained in:
Ayaz Salikhov
2026-06-17 11:33:39 +01:00
committed by GitHub
parent fa057bd876
commit 52af23fe77
30 changed files with 39 additions and 59 deletions

View File

@@ -109,7 +109,7 @@ struct ToNumber final {
return {}; // ignore for non-string types
auto const strInt = boost::json::value_to<std::string>(value.as_object().at(key));
if (strInt.find('.') != std::string::npos)
if (strInt.contains('.'))
return Error{Status{RippledError::rpcINVALID_PARAMS}}; // maybe a float
try {

View File

@@ -20,7 +20,6 @@
#include <charconv>
#include <cstdint>
#include <ctime>
#include <stdexcept>
#include <string>
#include <string_view>

View File

@@ -24,7 +24,6 @@
#include <xrpl/protocol/Serializer.h>
#include <xrpl/protocol/jss.h>
#include <memory>
#include <string>
#include <utility>

View File

@@ -91,7 +91,7 @@ LedgerDataHandler::process(Input const& input, Context const& ctx) const
for (size_t i = 0; i < objs.size(); ++i) {
auto& obj = objs[i];
if (!obj.empty())
results.push_back({keys[i], std::move(obj)});
results.push_back({.key = keys[i], .blob = std::move(obj)});
}
if (*(input.diffMarker) > lgrInfo.seq)