From d2b378b005031c31041a4fd0bf26e19bdcd4f606 Mon Sep 17 00:00:00 2001 From: HolyMan <85586852+HolyMan-17@users.noreply.github.com> Date: Wed, 17 Jul 2024 19:32:56 -0400 Subject: [PATCH] QRegExp to QRegularExpression and updated README (#368) * QRegExp to QRegularExpression and updated README One instance of QRegExp made the compiler crash when trying to build Akashi. Also, the README.md build instructions were outdated, new ones were provided to me by Salanto. * Appease clang --------- Co-authored-by: Salanto <62221668+Salanto@users.noreply.github.com> --- README.md | 4 ++-- src/packet/packet_ms.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 483adf3..89ceb05 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ Requires Qt >= 5.10, and Qt websockets **Ubuntu 20.04/22.04** - Ubuntu 18.04 or older are not supported. ``` - sudo apt install build-essential qt5-default libqt5websockets5-dev + sudo apt install build-essential qtbase5-dev qt5-qmake qttools5-dev qttools5-dev-tools libqt5websockets5-dev git clone https://github.com/AttorneyOnline/akashi cd akashi - qmake && make + qmake project-akashi.pro && make ``` # Contributors diff --git a/src/packet/packet_ms.cpp b/src/packet/packet_ms.cpp index cc7851f..70092fc 100644 --- a/src/packet/packet_ms.cpp +++ b/src/packet/packet_ms.cpp @@ -4,6 +4,7 @@ #include "server.h" #include +#include PacketMS::PacketMS(QStringList &contents) : AOPacket(contents) @@ -153,7 +154,7 @@ AOPacket *PacketMS::validateIcPacket(AOClient &client) const } if (client.m_is_disemvoweled) { - QString l_disemvoweled_message = l_incoming_msg.remove(QRegExp("[AEIOUaeiou]")); + QString l_disemvoweled_message = l_incoming_msg.remove(QRegularExpression("[AEIOUaeiou]")); l_incoming_msg = l_disemvoweled_message; }