From 0adead367d9e3602dc09ec99b6c915ea0bd1b9f8 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Tue, 1 Sep 2009 19:20:09 +0000 Subject: [PATCH] code style --- src/protocol.cpp | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/protocol.cpp b/src/protocol.cpp index e9ec2da8..eb73bc78 100755 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -193,8 +193,8 @@ void CProtocol::Reset() } void CProtocol::EnqueueMessage ( CVector& vecMessage, - const int iCnt, - const int iID ) + const int iCnt, + const int iID ) { bool bListWasEmpty; @@ -255,7 +255,7 @@ void CProtocol::SendMessage() } } -void CProtocol::CreateAndSendMessage ( const int iID, +void CProtocol::CreateAndSendMessage ( const int iID, const CVector& vecData ) { CVector vecNewMessage; @@ -278,7 +278,8 @@ void CProtocol::CreateAndSendMessage ( const int iID, EnqueueMessage ( vecNewMessage, iCurCounter, iID ); } -void CProtocol::CreateAndImmSendAcknMess ( const int& iID, const int& iCnt ) +void CProtocol::CreateAndImmSendAcknMess ( const int& iID, + const int& iCnt ) { CVector vecAcknMessage; CVector vecData ( 2 ); // 2 bytes of data @@ -295,7 +296,7 @@ void CProtocol::CreateAndImmSendAcknMess ( const int& iID, const int& iCnt ) } bool CProtocol::ParseMessage ( const CVector& vecbyData, - const int iNumBytes ) + const int iNumBytes ) { /* return code: false -> ok; true -> error @@ -976,10 +977,10 @@ bool CProtocol::EvaluateDisconnectionMes ( const CVector& vecData ) * Message generation (parsing) * \******************************************************************************/ bool CProtocol::ParseMessageFrame ( const CVector& vecIn, - const int iNumBytesIn, - int& iCnt, - int& iID, - CVector& vecData ) + const int iNumBytesIn, + int& iCnt, + int& iID, + CVector& vecData ) { /* return code: true -> ok; false -> error @@ -1072,9 +1073,9 @@ uint32_t CProtocol::GetValFromStream ( const CVector& vecIn, return iRet; } -void CProtocol::GenMessageFrame ( CVector& vecOut, - const int iCnt, - const int iID, +void CProtocol::GenMessageFrame ( CVector& vecOut, + const int iCnt, + const int iID, const CVector& vecData ) { int i; @@ -1129,9 +1130,9 @@ void CProtocol::GenMessageFrame ( CVector& vecOut, static_cast ( CRCObj.GetCRC() ), 2 ); } -void CProtocol::PutValOnStream ( CVector& vecIn, - unsigned int& iPos, - const uint32_t iVal, +void CProtocol::PutValOnStream ( CVector& vecIn, + unsigned int& iPos, + const uint32_t iVal, const unsigned int iNumOfBytes ) { /*