summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-03 14:50:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-03 14:50:53 +0300
commitd05183a9029d65224f73143a380f1631692a9257 (patch)
treeb6666dea4c4a37c072826a6ec62955dad8812415 /src/net/serverinfo.h
parentb643a5c48d53dbeca7672e3c8b5182f9d698abcb (diff)
downloadmv-d05183a9029d65224f73143a380f1631692a9257.tar.gz
mv-d05183a9029d65224f73143a380f1631692a9257.tar.bz2
mv-d05183a9029d65224f73143a380f1631692a9257.tar.xz
mv-d05183a9029d65224f73143a380f1631692a9257.zip
Convert ServerType enum into strong typed enum.
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r--src/net/serverinfo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index e96f7d8ea..04e967581 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -34,7 +34,7 @@ class ServerInfo final
public:
typedef std::pair<int, std::string> VersionString;
- ServerType::Type type;
+ ServerTypeT type;
std::string name;
std::string hostname;
std::string althostname;
@@ -126,8 +126,8 @@ class ServerInfo final
port != other.port);
}
- static ServerType::Type parseType(const std::string &serverType)
- A_WARN_UNUSED
+ static ServerTypeT parseType(const std::string &serverType)
+ A_WARN_UNUSED
{
#ifdef TMWA_SUPPORT
if (compareStrI(serverType, "tmwathena") == 0)