Put internal function into anonymous namespace

This commit is contained in:
Chocobo1
2019-07-14 17:22:17 +08:00
parent f993230582
commit f6f8aaf3db

View File

@@ -36,10 +36,13 @@ const int CACHE_SIZE = 500;
using namespace Net; 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)); return (!hostname.isEmpty() && (hostname != ip));
} }
}
ReverseResolution::ReverseResolution(QObject *parent) ReverseResolution::ReverseResolution(QObject *parent)
: QObject(parent) : QObject(parent)