From b660519e1915356214c31bd401b01aa750a961a1 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 15 Jan 2022 17:27:33 +0100 Subject: Use Qt::SplitBehavior instead of deprecated QString::SplitBehavior --- src/PatchedClonkParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PatchedClonkParser.cpp') diff --git a/src/PatchedClonkParser.cpp b/src/PatchedClonkParser.cpp index e5abd7d..7eea65d 100644 --- a/src/PatchedClonkParser.cpp +++ b/src/PatchedClonkParser.cpp @@ -8,7 +8,7 @@ PatchedClonkParser::PatchedClonkParser(CRSMSession& session) : ClonkParser(sessi namespace { void parseClientInfo(QString& message, QString& pcName, QString& user) { - if(message.length() > 5 && message.at(0) == '\\') + if(!message.isEmpty() && message.at(0) == '\\') { QString parts[2]; for(int i = 1, part = 0; i < message.length() && part < 2; ++i) -- cgit v1.2.3-54-g00ecf