Move currentVersion method to private namespace
authorKurt Pattyn <pattyn.kurt@gmail.com>
Sat, 18 Jan 2014 21:14:39 +0000 (22:14 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 20 Jan 2014 08:38:18 +0000 (09:38 +0100)
Change-Id: I49c952e8c71018fab2e48ade27f1f9c19279acb5
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
src/websockets/qwebsockethandshakeresponse.cpp
src/websockets/qwebsocketprotocol.h
src/websockets/qwebsocketprotocol_p.h

index 3700b21..cc1844d 100644 (file)
@@ -42,6 +42,7 @@
 #include "qwebsockethandshakeresponse_p.h"
 #include "qwebsockethandshakerequest_p.h"
 #include "qwebsocketprotocol.h"
+#include "qwebsocketprotocol_p.h"
 
 #include <QtCore/QString>
 #include <QtCore/QTextStream>
index c058937..1affc76 100644 (file)
@@ -84,8 +84,6 @@ enum CloseCode
     CloseCodeTlsHandshakeFailed     = 1015
 };
 
-inline Version currentVersion() { return VersionLatest; }
-
 }      //end namespace QWebSocketProtocol
 
 QT_END_NAMESPACE
index e2c883a..4ce51b5 100644 (file)
@@ -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