diff --git a/tests/main.cpp b/tests/main.cpp index 883041b..e1860dc 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -32,7 +32,7 @@ template T stringToEnum(QMetaEnum metaEnum, const QString &str) { T ret = {}; - const auto splitted = str.split(QLatin1Char('|')); + const auto splitted = str.split(QLatin1Char('|'), Qt::SkipEmptyParts); for (const auto &value : splitted) { ret |= T(metaEnum.keyToValue(qPrintable(value))); }