diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-09-30 11:32:14 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-01 14:45:15 +0000 |
commit | 27d663f5e7b66a06e76fcef08f47121e19f3fbd6 (patch) | |
tree | 7a9ed3fca834e126bb1b99f57a142af5ec61f7cb /src/mongo/db/free_mon | |
parent | c9bf1dbc9cc46e497b2f12b2d6685ef7348b0726 (diff) | |
download | mongo-27d663f5e7b66a06e76fcef08f47121e19f3fbd6.tar.gz |
SERVER-51084 easy XCode12 fixes (excludes the int to double fixes)
Diffstat (limited to 'src/mongo/db/free_mon')
-rw-r--r-- | src/mongo/db/free_mon/free_mon_controller_test.cpp | 3 | ||||
-rw-r--r-- | src/mongo/db/free_mon/free_mon_mongod.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/free_mon/free_mon_controller_test.cpp b/src/mongo/db/free_mon/free_mon_controller_test.cpp index 908120f42f1..a0e9e492ce5 100644 --- a/src/mongo/db/free_mon/free_mon_controller_test.cpp +++ b/src/mongo/db/free_mon/free_mon_controller_test.cpp @@ -217,7 +217,7 @@ private: T _payload; }; -class FreeMonNetworkInterfaceMock : public FreeMonNetworkInterface { +class FreeMonNetworkInterfaceMock final : public FreeMonNetworkInterface { public: struct Options { // If sync = true, then execute the callback immediately and the subsequent future chain @@ -241,7 +241,6 @@ public: explicit FreeMonNetworkInterfaceMock(executor::ThreadPoolTaskExecutor* threadPool, Options options) : _threadPool(threadPool), _options(options), _countdownMetrics(0) {} - ~FreeMonNetworkInterfaceMock() final = default; Future<FreeMonRegistrationResponse> sendRegistrationAsync( const FreeMonRegistrationRequest& req) final { diff --git a/src/mongo/db/free_mon/free_mon_mongod.cpp b/src/mongo/db/free_mon/free_mon_mongod.cpp index bc33c921855..2a76481037d 100644 --- a/src/mongo/db/free_mon/free_mon_mongod.cpp +++ b/src/mongo/db/free_mon/free_mon_mongod.cpp @@ -84,7 +84,7 @@ auto makeTaskExecutor(ServiceContext* /*serviceContext*/) { std::make_unique<ThreadPool>(tpOptions), executor::makeNetworkInterface("FreeMonNet")); } -class FreeMonNetworkHttp : public FreeMonNetworkInterface { +class FreeMonNetworkHttp final : public FreeMonNetworkInterface { public: explicit FreeMonNetworkHttp(ServiceContext* serviceContext) { _executor = makeTaskExecutor(serviceContext); @@ -95,7 +95,6 @@ public: "Accept: application/octet-stream", "Expect:"}); } - ~FreeMonNetworkHttp() final = default; Future<FreeMonRegistrationResponse> sendRegistrationAsync( const FreeMonRegistrationRequest& req) override { |