cleanup (removed unnecessary variable)

This commit is contained in:
Volker Fischer 2013-05-10 19:46:59 +00:00
parent 72b24fedf3
commit b8e9fcc4a3
2 changed files with 5 additions and 9 deletions

View file

@ -37,7 +37,7 @@ CClient::CClient ( const quint16 iPortNumber ) :
bCeltDoHighQuality ( false ),
bUseStereo ( false ),
bIsInitializationPhase ( true ),
Socket ( &Channel, &ConnLessProtocol, iPortNumber ),
Socket ( &Channel, iPortNumber ),
Sound ( AudioCallback, this ),
iAudioInFader ( AUD_FADER_IN_MIDDLE ),
bReverbOnLeftChan ( false ),

View file

@ -56,10 +56,8 @@ class CSocket : public QObject
public:
CSocket ( CChannel* pNewChannel,
CProtocol* pNewCLProtocol,
const quint16 iPortNumber )
: pChannel( pNewChannel ), pConnLessProtocol ( pNewCLProtocol ),
bIsClient ( true ) { Init ( iPortNumber ); }
: pChannel( pNewChannel ), bIsClient ( true ) { Init ( iPortNumber ); }
CSocket ( CServer* pNServP,
const quint16 iPortNumber )
@ -77,9 +75,8 @@ protected:
CVector<uint8_t> vecbyRecBuf;
CHostAddress RecHostAddr;
CChannel* pChannel; // for client
CProtocol* pConnLessProtocol; // for client
CServer* pServer; // for server
CChannel* pChannel; // for client
CServer* pServer; // for server
bool bIsClient;
@ -106,12 +103,11 @@ class CHighPrioSocket
{
public:
CHighPrioSocket ( CChannel* pNewChannel,
CProtocol* pNewCLProtocol,
const quint16 iPortNumber )
{
// TEST
worker = new CSocket ( pNewChannel, pNewCLProtocol, iPortNumber );
worker = new CSocket ( pNewChannel, iPortNumber );
worker->moveToThread(&workerThread);
workerThread.start(QThread::TimeCriticalPriority);