Replace emit by Q_EMIT
authorKurt Pattyn <pattyn.kurt@gmail.com>
Sat, 11 Jan 2014 18:15:16 +0000 (19:15 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 11 Jan 2014 18:53:30 +0000 (19:53 +0100)
Change-Id: I8543a74a9b3c8c1b45d9e0e12223072b6637199b
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
src/websockets/qwebsocket_p.cpp

index d620008..8491999 100644 (file)
@@ -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);
         }
     }
 }