diff options
author | sfan5 <sfan5@live.de> | 2022-02-23 20:02:58 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-02-26 14:39:41 +0100 |
commit | 04bd253390cc6c67a555e4837e7e48d524fdf014 (patch) | |
tree | 5b253a7ab2799686da9bdc85083e264707d06b4d /src/unittest/test_server_shutdown_state.cpp | |
parent | 7db751df3bc4e3b3aff80cdacd2883f3a7a0940b (diff) | |
download | minetest-04bd253390cc6c67a555e4837e7e48d524fdf014.tar.gz minetest-04bd253390cc6c67a555e4837e7e48d524fdf014.tar.bz2 minetest-04bd253390cc6c67a555e4837e7e48d524fdf014.zip |
Move the codebase to C++14
Diffstat (limited to 'src/unittest/test_server_shutdown_state.cpp')
-rw-r--r-- | src/unittest/test_server_shutdown_state.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/unittest/test_server_shutdown_state.cpp b/src/unittest/test_server_shutdown_state.cpp index fbb76ff6a..50305e725 100644 --- a/src/unittest/test_server_shutdown_state.cpp +++ b/src/unittest/test_server_shutdown_state.cpp @@ -26,12 +26,10 @@ with this program; if not, write to the Free Software Foundation, Inc., class FakeServer : public Server { public: - // clang-format off FakeServer() : Server("fakeworld", SubgameSpec("fakespec", "fakespec"), true, Address(), true, nullptr) { } - // clang-format on private: void SendChatMessage(session_t peer_id, const ChatMessage &message) @@ -95,7 +93,7 @@ void TestServerShutdownState::testTrigger() void TestServerShutdownState::testTick() { - std::unique_ptr<FakeServer> fakeServer(new FakeServer()); + auto fakeServer = std::make_unique<FakeServer>(); Server::ShutdownState ss; ss.trigger(28.0f, "testtrigger", true); ss.tick(0.0f, fakeServer.get()); |