Skip to content

Commit

Permalink
Use Qt::SkipEmptyParts
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
  • Loading branch information
HiFiPhile and glassez committed Jun 15, 2021
1 parent 77ec7f6 commit 2c4233c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webui/webapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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())
{
Expand Down

0 comments on commit 2c4233c

Please sign in to comment.