Restore evil-enabling reinterpret_cast in SocketMultiplexer

This commit is contained in:
Andrew Nelless 2016-09-09 13:38:08 +01:00
parent 0371002497
commit 90c3dd6622
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ SocketMultiplexer::SocketMultiplexer() :
// this pointer just has to be unique and not NULL. it will
// never be dereferenced. it's used to identify cursor nodes
// in the jobs list.
m_cursorMark = static_cast<ISocketMultiplexerJob*>(this);
// TODO: Remove this evilness
m_cursorMark = reinterpret_cast<ISocketMultiplexerJob*>(this);
// start thread
m_thread = new Thread(new TMethodJob<SocketMultiplexer>(