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

Make it compile against qt5.15. SkipEmptyParts is part of Qt::.

parent dceddb64
...@@ -260,7 +260,11 @@ void LdapUrl::parseQuery() ...@@ -260,7 +260,11 @@ void LdapUrl::parseQuery()
it != end; ++it, i++) { it != end; ++it, i++) {
switch (i) { switch (i) {
case 0: case 0:
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
d->m_attributes = (*it).split(QLatin1Char(','), QString::SkipEmptyParts); d->m_attributes = (*it).split(QLatin1Char(','), QString::SkipEmptyParts);
#else
d->m_attributes = (*it).split(QLatin1Char(','), Qt::SkipEmptyParts);
#endif
break; break;
case 1: case 1:
if ((*it) == QLatin1String("sub")) { if ((*it) == QLatin1String("sub")) {
...@@ -273,7 +277,11 @@ void LdapUrl::parseQuery() ...@@ -273,7 +277,11 @@ void LdapUrl::parseQuery()
d->m_filter = fromPercentEncoding((*it).toLatin1()); d->m_filter = fromPercentEncoding((*it).toLatin1());
break; break;
case 3: case 3:
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
extensions = (*it).split(QLatin1Char(','), QString::SkipEmptyParts); extensions = (*it).split(QLatin1Char(','), QString::SkipEmptyParts);
#else
extensions = (*it).split(QLatin1Char(','), Qt::SkipEmptyParts);
#endif
break; break;
} }
} }
......
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