From 01fcb51155c9d1abd66e65586864f1139146a116 Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Tue, 24 Aug 2021 07:05:38 +0200 Subject: [PATCH] Nix-QString::Splitbehaviour complaint (#195) --- core/src/packets.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/packets.cpp b/core/src/packets.cpp index 4e113d9..8846040 100644 --- a/core/src/packets.cpp +++ b/core/src/packets.cpp @@ -252,7 +252,11 @@ void AOClient::pktOocChat(AreaData* area, int argc, QStringList argv, AOPacket p return; AOPacket final_packet("CT", {ooc_name, message, "0"}); if(message.at(0) == '/') { +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) QStringList cmd_argv = message.split(" ", QString::SplitBehavior::SkipEmptyParts); +#else + QStringList cmd_argv = message.split(" ", Qt::SkipEmptyParts); +#endif QString command = cmd_argv[0].trimmed().toLower(); command = command.right(command.length() - 1); cmd_argv.removeFirst();