From cc7d194e14531bd9bed3dc2f79a810e918837f65 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sun, 8 May 2016 11:51:58 +0200 Subject: Fix some warnings --- src/ClientInfo.hpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/ClientInfo.hpp') diff --git a/src/ClientInfo.hpp b/src/ClientInfo.hpp index cdd8ff4..4a4ef0b 100644 --- a/src/ClientInfo.hpp +++ b/src/ClientInfo.hpp @@ -21,19 +21,23 @@ class ClientInfo { public: - ClientInterface interface = Clonk; + QString nick = ""; - bool dcc = false; - int CUID = 0; + QList antiFloodList; + QString target = ""; + + ManagementConnection management; QString pcName = ""; + + ClientInterface interface = Clonk; + int CUID = 0; bool activated = false; - QList antiFloodList; + bool dcc = false; + - QString target = ""; - ManagementConnection management; static inline ClientInfo ircClient(QString nick, QString target = "") @@ -151,7 +155,7 @@ public: { if(parts.length() != 5) throw ConfigException("Cannot read corrupt ClientInfo with Clonk-ClientInterface: " + string.toStdString()); info.pcName = parts.at(1); - info.CUID = parts.at(2).toUInt(); + info.CUID = parts.at(2).toInt(); info.nick = parts.at(3); info.activated = ConfigValueBase::getValue(parts.at(4)); break; -- cgit v1.2.3-54-g00ecf