summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qsocketnotifier.h
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2020-12-17 18:28:54 +0200
committerAlex Trotsenko <alex1973tr@gmail.com>2020-12-17 21:33:17 +0200
commit7a4e68624094216844134fe86a167444b25d2894 (patch)
tree555bbdaff40c57382392af6a5dcd2b266e907255 /src/corelib/kernel/qsocketnotifier.h
parent1649137b9311a5ee3d12bc8824f5453294bd6fe9 (diff)
QSocketNotifier: hone setSocket() API
Remove a second argument to the setSocket(qintptr, bool) function as it makes the API harder to understand. Change-Id: Ib1852a4e9d96adde35bfbf0fe03b386d9ded395a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'src/corelib/kernel/qsocketnotifier.h')
-rw-r--r--src/corelib/kernel/qsocketnotifier.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qsocketnotifier.h b/src/corelib/kernel/qsocketnotifier.h
index fdf11961c3..cd7d531687 100644
--- a/src/corelib/kernel/qsocketnotifier.h
+++ b/src/corelib/kernel/qsocketnotifier.h
@@ -58,7 +58,7 @@ public:
QSocketNotifier(qintptr socket, Type, QObject *parent = nullptr);
~QSocketNotifier();
- void setSocket(qintptr socket, bool enable = false);
+ void setSocket(qintptr socket);
qintptr socket() const;
Type type() const;