summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/ttssapi.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-07-27 22:31:26 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-08-16 12:15:14 +0200
commitcd352d9052b42781887996da5b0691dd581ce48c (patch)
treefc0ba0825a711e4cdacf30c008fc7f14e3d0a4a4 /rbutil/rbutilqt/base/ttssapi.cpp
parentd5820ff779397c9de50286d401c5d6422fb84fcb (diff)
downloadrockbox-cd352d9052.tar.gz
rockbox-cd352d9052.tar.bz2
rockbox-cd352d9052.zip
rbutil: QString::split() changed with Qt 5.14.
Avoid a deprecated warning, and make it compile with Qt6, which removes the old version. Change-Id: Iaad10660a0c8bda9d7aa52ee250489ed135bd8a8
Diffstat (limited to 'rbutil/rbutilqt/base/ttssapi.cpp')
-rw-r--r--rbutil/rbutilqt/base/ttssapi.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/ttssapi.cpp b/rbutil/rbutilqt/base/ttssapi.cpp
index d2d8cf801a..3d07c09a98 100644
--- a/rbutil/rbutilqt/base/ttssapi.cpp
+++ b/rbutil/rbutilqt/base/ttssapi.cpp
@@ -204,7 +204,11 @@ QStringList TTSSapi::getVoiceList(QString language)
if(dataRaw.startsWith("Error")) {
LOG_INFO() << "Error:" << dataRaw;
}
- result = dataRaw.split(";",QString::SkipEmptyParts);
+#if QT_VERSION >= 0x050e00
+ result = dataRaw.split(";", Qt::SkipEmptyParts);
+#else
+ result = dataRaw.split(";", QString::SkipEmptyParts);
+#endif
if(result.size() > 0)
{
result.sort();