summaryrefslogtreecommitdiffstats
path: root/src/network/kernel
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-08-29 09:40:06 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-09-02 12:39:12 +0000
commit9a15ac356cbbc25eeb48ac3a8fcbe5fb96dad5f5 (patch)
treebd715eb85b9e106269a47a02ace0e5c8f1b04518 /src/network/kernel
parent4c4a5f8c86624f180fca3e2f80758d60f3cbaa4c (diff)
Windows code: Fix clang-tidy warnings about (private) class definitions
Add override, disable copies where appropriate and use = default for trivial functions. Change-Id: Ia5bc7419b1aa053c5503ea7dfaf11cb6dfafd2e2 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/kernel')
-rw-r--r--src/network/kernel/qnetworkproxy_win.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/kernel/qnetworkproxy_win.cpp b/src/network/kernel/qnetworkproxy_win.cpp
index e67faaf856..db51732bd3 100644
--- a/src/network/kernel/qnetworkproxy_win.cpp
+++ b/src/network/kernel/qnetworkproxy_win.cpp
@@ -370,7 +370,10 @@ static QList<QNetworkProxy> parseServerList(const QNetworkProxyQuery &query, con
#if !defined(Q_OS_WINRT)
namespace {
class QRegistryWatcher {
+ Q_DISABLE_COPY(QRegistryWatcher)
public:
+ QRegistryWatcher() = default;
+
void addLocation(HKEY hive, const QString& path)
{
HKEY openedKey;
@@ -422,6 +425,7 @@ private:
class QWindowsSystemProxy
{
+ Q_DISABLE_COPY(QWindowsSystemProxy)
public:
QWindowsSystemProxy();
~QWindowsSystemProxy();