diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2014-01-18 22:14:39 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-20 09:38:18 +0100 |
commit | ab0704e1559c316e65b4bce4e1ab913cdee4dfa2 (patch) | |
tree | 7c8bae49cd0e7554a348919dae5eb0a3b3a6e779 /src/websockets/qwebsocketprotocol_p.h | |
parent | 367a9ffcc20fd79ee1ea83e4fd5c6b6ae16c5729 (diff) | |
download | qtwebsockets-ab0704e1559c316e65b4bce4e1ab913cdee4dfa2.tar.gz |
Move currentVersion method to private namespace
Change-Id: I49c952e8c71018fab2e48ade27f1f9c19279acb5
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocketprotocol_p.h')
-rw-r--r-- | src/websockets/qwebsocketprotocol_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/websockets/qwebsocketprotocol_p.h b/src/websockets/qwebsocketprotocol_p.h index e2c883a..4ce51b5 100644 --- a/src/websockets/qwebsocketprotocol_p.h +++ b/src/websockets/qwebsocketprotocol_p.h @@ -86,6 +86,8 @@ inline bool isCloseCodeValid(int closeCode) ((closeCode >= 3000) || (closeCode < 1012)); } +inline Version currentVersion() { return VersionLatest; } + void Q_AUTOTEST_EXPORT mask(QByteArray *payload, quint32 maskingKey); void Q_AUTOTEST_EXPORT mask(char *payload, quint64 size, quint32 maskingKey); } //end namespace QWebSocketProtocol |