summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocketframe_p.h
diff options
context:
space:
mode:
authorRyan Chu <ryan.chu@qt.io>2019-06-30 13:56:25 +0200
committerRyan Chu <ryan.chu@qt.io>2019-08-23 15:28:40 +0200
commit24894c032719157a2d738f03e0c70d3ff0cf1782 (patch)
treee4b34ff85b5f5007093347f4019774e2ac82b78c /src/websockets/qwebsocketframe_p.h
parent140246105d3581ceb238134a02261d49417296c7 (diff)
downloadqtwebsockets-24894c032719157a2d738f03e0c70d3ff0cf1782.tar.gz
Make QWebSocketFrame::readFrame as a non-static public function
The static function QWebSocketFrame::readFrame used to return a parsed QWebSocketFrame read from QIODevice. This change make QWebSocketFrame reusable. It will base on its internal state and keep processing the incoming data from QIODevice. Change-Id: Ic6dea59529fa935cdb8034519e633ea67e869674 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/websockets/qwebsocketframe_p.h')
-rw-r--r--src/websockets/qwebsocketframe_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websockets/qwebsocketframe_p.h b/src/websockets/qwebsocketframe_p.h
index b442d01..be79a6e 100644
--- a/src/websockets/qwebsocketframe_p.h
+++ b/src/websockets/qwebsocketframe_p.h
@@ -102,7 +102,7 @@ public:
bool isValid() const;
- static QWebSocketFrame readFrame(QIODevice *pIoDevice);
+ void readFrame(QIODevice *pIoDevice);
private:
QWebSocketProtocol::CloseCode m_closeCode;