Commit ad31002c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

QString::split(..., Qt::SplitBehavior, ...) is already in Qt 5.14

parent 8702c5e0
Pipeline #47731 passed with stage
in 17 minutes and 20 seconds
......@@ -119,11 +119,7 @@ void SelectCertificateCommand::setSelectedCertificates(const QStringList &certs)
QStringList SelectCertificateCommand::selectedCertificates() const
{
const QByteArray data = receivedData();
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
return QString::fromLatin1(data.data(), data.size()).split(QLatin1Char('\n'), Qt::SkipEmptyParts);
#else
return QString::fromLatin1(data.data(), data.size()).split(QLatin1Char('\n'), QString::SkipEmptyParts);
#endif
}
void SelectCertificateCommand::setSelectedCertificate(const QString &cert)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment