mirror of
https://github.com/XRPLF/clio.git
synced 2026-06-02 08:16:58 +00:00
style: clang-tidy auto fixes (#2519)
This commit is contained in:
committed by
GitHub
parent
d9faf7a833
commit
7c68770787
@@ -33,6 +33,7 @@
|
||||
#include <xrpl/basics/StringUtilities.h>
|
||||
#include <xrpl/basics/base_uint.h>
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/Protocol.h>
|
||||
#include <xrpl/protocol/UintTypes.h>
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <boost/json/value_to.hpp>
|
||||
#include <xrpl/basics/strHex.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/LedgerHeader.h>
|
||||
#include <xrpl/protocol/STLedgerEntry.h>
|
||||
#include <xrpl/protocol/jss.h>
|
||||
@@ -158,9 +159,10 @@ tag_invoke(boost::json::value_to_tag<AccountObjectsHandler::Input>, boost::json:
|
||||
}
|
||||
}
|
||||
|
||||
if (jsonObject.contains(JS(type)))
|
||||
if (jsonObject.contains(JS(type))) {
|
||||
input.type =
|
||||
util::LedgerTypes::getAccountOwnedLedgerTypeFromStr(boost::json::value_to<std::string>(jv.at(JS(type))));
|
||||
}
|
||||
|
||||
if (jsonObject.contains(JS(limit)))
|
||||
input.limit = jv.at(JS(limit)).as_int64();
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include <boost/json/value_to.hpp>
|
||||
#include <xrpl/basics/base_uint.h>
|
||||
#include <xrpl/basics/strHex.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/LedgerHeader.h>
|
||||
#include <xrpl/protocol/STLedgerEntry.h>
|
||||
#include <xrpl/protocol/Serializer.h>
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
#include "util/JsonUtils.hpp"
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
#include "util/config/ConfigDefinition.hpp"
|
||||
|
||||
#include <boost/beast/http/field.hpp>
|
||||
#include <xrpl/basics/base_uint.h>
|
||||
#include <xrpl/protocol/digest.h>
|
||||
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
|
||||
@@ -25,9 +25,6 @@
|
||||
#include "util/config/ValueView.hpp"
|
||||
|
||||
#include <boost/beast/http/field.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/beast/http/string_body.hpp>
|
||||
#include <xrpl/basics/base_uint.h>
|
||||
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
@@ -95,7 +95,7 @@ TEST_F(ProxyIpResolverTest, FromConfig)
|
||||
TEST_P(ProxyIpResolverTest, ResolveClientIp)
|
||||
{
|
||||
auto const& params = GetParam();
|
||||
ProxyIpResolver resolver(params.proxyIps, params.proxyTokens);
|
||||
ProxyIpResolver const resolver(params.proxyIps, params.proxyTokens);
|
||||
ProxyIpResolver::HttpHeaders headers;
|
||||
for (auto const& [key, value] : params.headers) {
|
||||
headers.set(key, value);
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#include <boost/beast/http/status.hpp>
|
||||
#include <boost/beast/http/string_body.hpp>
|
||||
#include <boost/beast/http/verb.hpp>
|
||||
#include <fmt/format.h>
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
|
||||
@@ -39,9 +39,7 @@
|
||||
#include <boost/asio/spawn.hpp>
|
||||
#include <boost/asio/steady_timer.hpp>
|
||||
#include <boost/beast/core/flat_buffer.hpp>
|
||||
#include <boost/beast/http/field.hpp>
|
||||
#include <boost/beast/http/status.hpp>
|
||||
#include <fmt/format.h>
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user