mirror of
https://github.com/XRPLF/clio.git
synced 2026-08-22 21:20:52 +00:00
chore: Fixes after tidy v22 update (#3108)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
|
||||
#include <charconv>
|
||||
#include <cstdint>
|
||||
#include <ctime>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <xrpl/protocol/Serializer.h>
|
||||
#include <xrpl/protocol/jss.h>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user