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. 5
      src/base/net/reverseresolution.cpp

5
src/base/net/reverseresolution.cpp

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

Loading…
Cancel
Save