From 2c4233c0a0ba7ce0565e5a640a335af6d32a0361 Mon Sep 17 00:00:00 2001 From: HiFiPhile Date: Mon, 14 Jun 2021 17:06:14 +0200 Subject: [PATCH] Use Qt::SkipEmptyParts Co-authored-by: Vladimir Golovnev --- src/webui/webapplication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/webapplication.cpp b/src/webui/webapplication.cpp index a1f9e22b72a..e86b314e19f 100644 --- a/src/webui/webapplication.cpp +++ b/src/webui/webapplication.cpp @@ -410,7 +410,7 @@ void WebApplication::configure() { m_trustedReverseProxyList.clear(); - const QStringList proxyList = pref->getWebUITrustedReverseProxiesList().split(';', QString::SkipEmptyParts); + const QStringList proxyList = pref->getWebUITrustedReverseProxiesList().split(';', Qt::SkipEmptyParts); for (const QString &proxy : proxyList) { @@ -740,7 +740,7 @@ QHostAddress WebApplication::resolveClientAddress() const if (!forwardedFor.isEmpty()) { // client address is the 1st global IP in X-Forwarded-For or, if none available, the 1st IP in the list - const QStringList remoteIpList = forwardedFor.split(',', QString::SkipEmptyParts); + const QStringList remoteIpList = forwardedFor.split(',', Qt::SkipEmptyParts); if (!remoteIpList.isEmpty()) {