From f6f8aaf3db071d9ba7796494dd15a1ea3326ee37 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 14 Jul 2019 17:22:17 +0800 Subject: [PATCH] Put internal function into anonymous namespace --- src/base/net/reverseresolution.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/base/net/reverseresolution.cpp b/src/base/net/reverseresolution.cpp index 116de9ef0..89ebf1c6f 100644 --- a/src/base/net/reverseresolution.cpp +++ b/src/base/net/reverseresolution.cpp @@ -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)