1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +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,9 +36,12 @@ const int CACHE_SIZE = 500;
using namespace Net; 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) ReverseResolution::ReverseResolution(QObject *parent)