diff options
| author | Rosemary Witchaven <32779090+in1tiate@users.noreply.github.com> | 2022-07-29 11:23:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-29 18:23:36 +0200 |
| commit | e36d79f7499ca4484585fad7738df4764f3fd0aa (patch) | |
| tree | 3256a4c8b941817387ef65136232cfbb347849e9 /src/demoserver.cpp | |
| parent | 834c5ff929d9044fc1237655c5d5ad4ae8a653cf (diff) | |
Fix or suppress compiler warnings (Qt 5.15 w/MinGW) (#818)
* Major cleanup of screenshake code
* Add pre-5.10 support for screenshake math
* more compat, uglier too
* add surprise tool
* we don't need inline functions
* only run qsrand on old versions
* Squash compiler warnings
* >= not > please
* only run qsrand on old versions
* Squash compiler warnings
* >= not > please
Co-authored-by: stonedDiscord <Tukz@gmx.de>
Co-authored-by: Salanto <62221668+Salanto@users.noreply.github.com>
Diffstat (limited to 'src/demoserver.cpp')
| -rw-r--r-- | src/demoserver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/demoserver.cpp b/src/demoserver.cpp index c4f8c158..0aefc0cc 100644 --- a/src/demoserver.cpp +++ b/src/demoserver.cpp @@ -95,7 +95,11 @@ void DemoServer::recv_data() } QStringList packet_list = +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) in_data.split("%", QString::SplitBehavior(QString::SkipEmptyParts)); +#else + in_data.split("%", Qt::SkipEmptyParts); +#endif for (const QString &packet : packet_list) { AOPacket ao_packet(packet); |
