From 384b5ab55d355b69d673bdea8ec73fa6f8f12510 Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Wed, 28 Jun 2023 16:23:12 -0400 Subject: [PATCH] Fix build references to deleted ServerHandlerImp: (#4592) * Commits 0b812cd (#4427) and 11e914f (#4516) conflict. The first added references to `ServerHandlerImp` in files outside of that class's organizational unit (which is technically incorrect). The second removed `ServerHandlerImp`, but was not up to date with develop. This results in the build failing. * Fixes the build by changing references to `ServerHandlerImp` to the more correct `ServerHandler`. --- src/ripple/app/main/Application.cpp | 2 +- src/ripple/app/main/Application.h | 4 ++-- src/ripple/app/misc/NetworkOPs.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ripple/app/main/Application.cpp b/src/ripple/app/main/Application.cpp index 8ed328df440..42bf6d66c9d 100644 --- a/src/ripple/app/main/Application.cpp +++ b/src/ripple/app/main/Application.cpp @@ -602,7 +602,7 @@ class ApplicationImp : public Application, public BasicApp return *m_networkOPs; } - virtual ServerHandlerImp& + virtual ServerHandler& getServerHandler() override { assert(serverHandler_); diff --git a/src/ripple/app/main/Application.h b/src/ripple/app/main/Application.h index d2ba8f7cc75..67343852b66 100644 --- a/src/ripple/app/main/Application.h +++ b/src/ripple/app/main/Application.h @@ -89,7 +89,7 @@ class Overlay; class PathRequests; class PendingSaves; class PublicKey; -class ServerHandlerImp; +class ServerHandler; class SecretKey; class STLedgerEntry; class TimeKeeper; @@ -232,7 +232,7 @@ class Application : public beast::PropertyStream::Source getOPs() = 0; virtual OrderBookDB& getOrderBookDB() = 0; - virtual ServerHandlerImp& + virtual ServerHandler& getServerHandler() = 0; virtual TransactionMaster& getMasterTransaction() = 0; diff --git a/src/ripple/app/misc/NetworkOPs.cpp b/src/ripple/app/misc/NetworkOPs.cpp index 6f51f811055..79cd857b785 100644 --- a/src/ripple/app/misc/NetworkOPs.cpp +++ b/src/ripple/app/misc/NetworkOPs.cpp @@ -64,8 +64,8 @@ #include #include #include +#include #include -#include #include #include