diff --git a/src/tests/gui/test_gui2.cpp b/src/tests/gui/test_gui2.cpp index b52dbaf5abec..4f606148faab 100644 --- a/src/tests/gui/test_gui2.cpp +++ b/src/tests/gui/test_gui2.cpp @@ -854,16 +854,16 @@ template<> struct dialog_tester { config game_config; - wesnothd_connection_ptr connection; + wesnothd_connection connection; wesnothd_connection_init init; std::vector installed_addons; mp::lobby_info li; - dialog_tester() : connection(wesnothd_connection::create("", "")), init(*connection), li(game_config, installed_addons) + dialog_tester() : connection("", ""), init(*connection), li(game_config, installed_addons) { } mp_lobby* create() { - return new mp_lobby(game_config, li, *connection); + return new mp_lobby(game_config, li, connection); } }; @@ -880,13 +880,13 @@ struct dialog_tester { config c; fake_chat_handler ch; - wesnothd_connection_ptr connection; + wesnothd_connection connection; wesnothd_connection_init init; mp::user_info ui; std::vector installed_addons; mp::lobby_info li; dialog_tester() - : connection(wesnothd_connection::create("", "")), init(*connection) + : connection("", ""), init(connection) , ui(c), li(c, installed_addons) { }