Change-Id: Ice4826e7670cffa791250a95387ac1121ddc4089
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
m_dataProcessor(),
m_configuration()
{
- Q_ASSERT(pWebSocket);
- qsrand(static_cast<uint>(QDateTime::currentMSecsSinceEpoch()));
+ init();
}
/*!
m_dataProcessor(),
m_configuration()
{
- Q_ASSERT(pWebSocket);
+ init();
makeConnections(m_pSocket.data());
}
/*!
\internal
*/
+void QWebSocketPrivate::init()
+{
+ Q_ASSERT(q_ptr);
+ qsrand(static_cast<uint>(QDateTime::currentMSecsSinceEpoch()));
+}
+
+/*!
+ \internal
+*/
QWebSocketPrivate::~QWebSocketPrivate()
{
if (!m_pSocket)
QObject *parent = Q_NULLPTR);
virtual ~QWebSocketPrivate();
+ void init();
void abort();
QAbstractSocket::SocketError error() const;
QString errorString() const;