diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-10-06 12:53:15 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-10-06 12:57:19 (GMT) |
commit | f83ae188edb09a94b25b962c8a8b793180d22b67 (patch) | |
tree | 45f3464cd11738718d80e7cf7518a5619bd3b6f3 /src | |
parent | 27456087b6c032b48b3aca6ea228a3d068a6d7c9 (diff) | |
download | Qt-f83ae188edb09a94b25b962c8a8b793180d22b67.zip Qt-f83ae188edb09a94b25b962c8a8b793180d22b67.tar.gz Qt-f83ae188edb09a94b25b962c8a8b793180d22b67.tar.bz2 |
QAbstractSocket::setSocketOption: Make const reference
After 4.6 API review.
Reviewed-by: Volker Hilsheimer
Diffstat (limited to 'src')
-rw-r--r-- | src/network/socket/qabstractsocket.cpp | 2 | ||||
-rw-r--r-- | src/network/socket/qabstractsocket.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/network/socket/qabstractsocket.cpp b/src/network/socket/qabstractsocket.cpp index 675e88a..86ccef2 100644 --- a/src/network/socket/qabstractsocket.cpp +++ b/src/network/socket/qabstractsocket.cpp @@ -1576,7 +1576,7 @@ bool QAbstractSocket::setSocketDescriptor(int socketDescriptor, SocketState sock \sa socketOption() \since 4.6 */ -void QAbstractSocket::setSocketOption(QAbstractSocket::SocketOption option, QVariant value) +void QAbstractSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value) { if (!d_func()->socketEngine) return; diff --git a/src/network/socket/qabstractsocket.h b/src/network/socket/qabstractsocket.h index 4a7763f..5d94a01 100644 --- a/src/network/socket/qabstractsocket.h +++ b/src/network/socket/qabstractsocket.h @@ -154,8 +154,8 @@ public: OpenMode openMode = ReadWrite); // ### Qt 5: Make virtual? - void setSocketOption(QAbstractSocket::SocketOption o, QVariant v); - QVariant socketOption(QAbstractSocket::SocketOption o); + void setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value); + QVariant socketOption(QAbstractSocket::SocketOption option); SocketType socketType() const; SocketState state() const; |