Browse Source

Put internal function into anonymous namespace

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
f6f8aaf3db
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 7
      src/base/net/reverseresolution.cpp

7
src/base/net/reverseresolution.cpp

@ -36,9 +36,12 @@ const int CACHE_SIZE = 500; @@ -36,9 +36,12 @@ const int CACHE_SIZE = 500;
using namespace Net;
static inline bool isUsefulHostName(const QString &hostname, const QString &ip)
namespace
{
return (!hostname.isEmpty() && (hostname != ip));
bool isUsefulHostName(const QString &hostname, const QString &ip)
{
return (!hostname.isEmpty() && (hostname != ip));
}
}
ReverseResolution::ReverseResolution(QObject *parent)

Loading…
Cancel
Save