mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Fix compile issues, slight code cleanup
This commit is contained in:
parent
7524299de9
commit
9151cd0d1d
@ -50,10 +50,6 @@ public:
|
|||||||
virtual CloseState ProcessNewConnection(SOCKET socket);
|
virtual CloseState ProcessNewConnection(SOCKET socket);
|
||||||
inline void AddToFDSet(Socket_fdset &set);
|
inline void AddToFDSet(Socket_fdset &set);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// inline LinkNode * GetRoot(void) { return &this->sentenal; };
|
// inline LinkNode * GetRoot(void) { return &this->sentenal; };
|
||||||
BaseIncomingSet &operator=( BaseIncomingSet &inval);
|
BaseIncomingSet &operator=( BaseIncomingSet &inval);
|
||||||
void Reset();
|
void Reset();
|
||||||
|
@ -46,7 +46,7 @@ inline int BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READE
|
|||||||
if(ans < 0)
|
if(ans < 0)
|
||||||
{
|
{
|
||||||
delete *lp;
|
delete *lp;
|
||||||
erase(lp);
|
this->erase(lp);
|
||||||
}
|
}
|
||||||
if(ans > 0)
|
if(ans > 0)
|
||||||
{
|
{
|
||||||
@ -54,7 +54,7 @@ inline int BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READE
|
|||||||
if( cs == ConnectionDoClose)
|
if( cs == ConnectionDoClose)
|
||||||
{
|
{
|
||||||
delete *lp;
|
delete *lp;
|
||||||
erase(lp);
|
this->erase(lp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -194,7 +194,7 @@ inline void BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READ
|
|||||||
lpNext++;
|
lpNext++;
|
||||||
(*lp)->Reset();
|
(*lp)->Reset();
|
||||||
delete *lp;
|
delete *lp;
|
||||||
erase(lp);
|
this->erase(lp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user