summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qbuffer.h
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-04-22 14:30:32 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-01 01:18:03 +0200
commit90c6d445120a4b057c9e75c1f004d203ec715d10 (patch)
tree90201d6e621597d777e917c136069195a7e0c0d6 /src/corelib/io/qbuffer.h
parentb39c1a32b513b413fcfe055131476880f4b5a20e (diff)
Port QBuffer to QMetaMethod-based connectNotify()
The const char *-based API is deprecated and will be removed in Qt5. Also fix a bug in the disconnectNotify() reimplementation; when all signals are disconnected at once, disconnectNotify() is only called a single time, with an invalid method as argument. Thus, the signal connection count should be set to 0, instead of decremented. Change-Id: Ieee92293777bff87f8b28e56e23ab55d0b8b8101 Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qbuffer.h')
-rw-r--r--src/corelib/io/qbuffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qbuffer.h b/src/corelib/io/qbuffer.h
index 8b42363f24..ffbc554ec4 100644
--- a/src/corelib/io/qbuffer.h
+++ b/src/corelib/io/qbuffer.h
@@ -88,8 +88,8 @@ public:
protected:
#ifndef QT_NO_QOBJECT
- void connectNotify(const char*);
- void disconnectNotify(const char*);
+ void connectNotify(const QMetaMethod &);
+ void disconnectNotify(const QMetaMethod &);
#endif
qint64 readData(char *data, qint64 maxlen);
qint64 writeData(const char *data, qint64 len);