Corrected type in reserved opcode names
authorKurt Pattyn <pattyn.kurt@gmail.com>
Mon, 26 Aug 2013 20:42:26 +0000 (22:42 +0200)
committerKurt Pattyn <pattyn.kurt@gmail.com>
Mon, 26 Aug 2013 20:42:26 +0000 (22:42 +0200)
src/dataprocessor_p.cpp
src/qwebsocket_p.cpp
src/qwebsocketprotocol.h

index 214e581..fcadaac 100644 (file)
@@ -103,7 +103,7 @@ Frame::Frame() :
     m_rsv1(0),
     m_rsv2(0),
     m_rsv3(0),
-    m_opCode(QWebSocketProtocol::OC_RESERVED_V),
+    m_opCode(QWebSocketProtocol::OC_RESERVED_C),
     m_length(0),
     m_payload(),
     m_isValid(false)
@@ -264,7 +264,7 @@ void Frame::clear()
     m_rsv1 = 0;
     m_rsv2 =0;
     m_rsv3 = 0;
-    m_opCode = QWebSocketProtocol::OC_RESERVED_V;
+    m_opCode = QWebSocketProtocol::OC_RESERVED_C;
     m_length = 0;
     m_payload.clear();
     m_isValid = false;
index a433fc2..8acb9e3 100644 (file)
@@ -927,11 +927,11 @@ void QWebSocketPrivate::processControlFrame(QWebSocketProtocol::OpCode opCode, Q
     case QWebSocketProtocol::OC_RESERVED_5:
     case QWebSocketProtocol::OC_RESERVED_6:
     case QWebSocketProtocol::OC_RESERVED_7:
+    case QWebSocketProtocol::OC_RESERVED_C:
     case QWebSocketProtocol::OC_RESERVED_B:
     case QWebSocketProtocol::OC_RESERVED_D:
     case QWebSocketProtocol::OC_RESERVED_E:
     case QWebSocketProtocol::OC_RESERVED_F:
-    case QWebSocketProtocol::OC_RESERVED_V:
     {
         //do nothing
         //case added to make C++ compiler happy
index 7604fbc..2d1bea3 100644 (file)
@@ -76,7 +76,7 @@ enum OpCode
     OC_PING                    = 0x9,
     OC_PONG                    = 0xA,
     OC_RESERVED_B      = 0xB,
-    OC_RESERVED_V      = 0xC,
+    OC_RESERVED_C      = 0xC,
     OC_RESERVED_D      = 0xD,
     OC_RESERVED_E      = 0xE,
     OC_RESERVED_F      = 0xF