1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-08-30 07:32:06 +00:00

Put internal function into anonymous namespace

This commit is contained in:
Chocobo1 2019-07-14 17:22:17 +08:00
parent f993230582
commit f6f8aaf3db
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

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)