Skip to content

Commit b50a4bc

Browse files
github-actions[bot]godexsoft
authored andcommitted
style: clang-tidy auto fixes (XRPLF#1925)
Fixes XRPLF#1924. Please review and commit clang-tidy fixes. Co-authored-by: godexsoft <385326+godexsoft@users.noreply.github.com>
1 parent 4d96e07 commit b50a4bc

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

src/rpc/AMMHelpers.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include "rpc/AMMHelpers.hpp"
2121

22+
#include "data/AmendmentCenterInterface.hpp"
2223
#include "data/BackendInterface.hpp"
2324
#include "rpc/RPCHelpers.hpp"
2425

src/rpc/handlers/Ledger.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <memory>
3737
#include <optional>
3838
#include <string>
39+
#include <utility>
3940

4041
namespace rpc {
4142

@@ -97,7 +98,7 @@ class LedgerHandler {
9798
std::shared_ptr<BackendInterface> const& sharedPtrBackend,
9899
std::shared_ptr<data::AmendmentCenterInterface const> amendmentCenter
99100
)
100-
: sharedPtrBackend_(sharedPtrBackend), amendmentCenter_(amendmentCenter)
101+
: sharedPtrBackend_(sharedPtrBackend), amendmentCenter_(std::move(amendmentCenter))
101102
{
102103
}
103104

src/rpc/handlers/Subscribe.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include "rpc/handlers/Subscribe.hpp"
2121

22+
#include "data/AmendmentCenterInterface.hpp"
2223
#include "data/BackendInterface.hpp"
2324
#include "data/Types.hpp"
2425
#include "feed/SubscriptionManagerInterface.hpp"

tests/unit/feed/TransactionFeedTests.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <gmock/gmock.h>
3232
#include <gtest/gtest.h>
3333
#include <xrpl/basics/base_uint.h>
34+
#include <xrpl/protocol/AccountID.h>
3435
#include <xrpl/protocol/Book.h>
3536
#include <xrpl/protocol/Indexes.h>
3637
#include <xrpl/protocol/Issue.h>

tests/unit/rpc/RPCHelpersTests.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <gmock/gmock.h>
3939
#include <gtest/gtest.h>
4040
#include <xrpl/basics/base_uint.h>
41+
#include <xrpl/protocol/AccountID.h>
4142
#include <xrpl/protocol/ErrorCodes.h>
4243
#include <xrpl/protocol/Indexes.h>
4344
#include <xrpl/protocol/LedgerFormats.h>

0 commit comments

Comments
 (0)