diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2014-01-11 19:15:16 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-11 19:53:30 +0100 |
commit | d32da4165264b9502a636ee5f9e11d80e25f09d2 (patch) | |
tree | ac8865b1ae63c379ea3badb8c15ceab77b32accc | |
parent | b019b9ccea08bcc7b65fd9f1a497546924ef592d (diff) |
Replace emit by Q_EMIT
Change-Id: I8543a74a9b3c8c1b45d9e0e12223072b6637199b
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
-rw-r--r-- | src/websockets/qwebsocket_p.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/websockets/qwebsocket_p.cpp b/src/websockets/qwebsocket_p.cpp index d620008..8491999 100644 --- a/src/websockets/qwebsocket_p.cpp +++ b/src/websockets/qwebsocket_p.cpp @@ -367,7 +367,7 @@ void QWebSocketPrivate::open(const QUrl &url, bool mask) if (!QSslSocket::supportsSsl()) { const QString message = tr("SSL Sockets are not supported on this platform."); setErrorString(message); - emit q->error(QAbstractSocket::UnsupportedSocketOperationError); + Q_EMIT q->error(QAbstractSocket::UnsupportedSocketOperationError); } else { QSslSocket *sslSocket = new QSslSocket(this); m_pSocket.reset(sslSocket); @@ -391,7 +391,7 @@ void QWebSocketPrivate::open(const QUrl &url, bool mask) } else { const QString message = tr("Out of memory."); setErrorString(message); - emit q->error(QAbstractSocket::SocketResourceError); + Q_EMIT q->error(QAbstractSocket::SocketResourceError); } } } else @@ -412,12 +412,12 @@ void QWebSocketPrivate::open(const QUrl &url, bool mask) } else { const QString message = tr("Out of memory."); setErrorString(message); - emit q->error(QAbstractSocket::SocketResourceError); + Q_EMIT q->error(QAbstractSocket::SocketResourceError); } } else { const QString message = tr("Unsupported websockets scheme: %1").arg(url.scheme()); setErrorString(message); - emit q->error(QAbstractSocket::UnsupportedSocketOperationError); + Q_EMIT q->error(QAbstractSocket::UnsupportedSocketOperationError); } } } |