diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 17:26:44 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 17:27:39 +0100 |
commit | 72ceaaa426166bfa425f519c2418a66872839e12 (patch) | |
tree | 1ce7253fc629d4df445b89b2f533899341f03fc5 /src/gui/serverdialog.cpp | |
parent | 78d6d9352f66f41963207b04a999d94c17d67cf2 (diff) | |
download | Mana-72ceaaa426166bfa425f519c2418a66872839e12.tar.gz Mana-72ceaaa426166bfa425f519c2418a66872839e12.tar.bz2 Mana-72ceaaa426166bfa425f519c2418a66872839e12.tar.xz Mana-72ceaaa426166bfa425f519c2418a66872839e12.zip |
Changed server type to "enum class"
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r-- | src/gui/serverdialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 0bff4c9e..bad2c2b5 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -55,13 +55,13 @@ static const int MAX_SERVERLIST = 6; -static std::string serverTypeToString(ServerInfo::Type type) +static std::string serverTypeToString(ServerType type) { switch (type) { - case ServerInfo::TMWATHENA: + case ServerType::TMWATHENA: return "TmwAthena"; - case ServerInfo::MANASERV: + case ServerType::MANASERV: return "ManaServ"; default: return std::string(); @@ -267,7 +267,7 @@ void ServerDialog::action(const gcn::ActionEvent &event) // Check login if (index < 0 #ifndef MANASERV_SUPPORT - || mServersListModel->getServer(index).type == ServerInfo::MANASERV + || mServersListModel->getServer(index).type == ServerType::MANASERV #endif ) { @@ -458,9 +458,9 @@ void ServerDialog::loadServers() server.type = ServerInfo::parseType(type); // Ignore unknown server types - if (server.type == ServerInfo::UNKNOWN + if (server.type == ServerType::UNKNOWN #ifndef MANASERV_SUPPORT - || server.type == ServerInfo::MANASERV + || server.type == ServerType::MANASERV #endif ) { |