Changeset 1140
- Timestamp:
- Apr 22, 2008, 10:03:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/InputBuffer.h
r1066 r1140 63 63 void registerListener(T* listener, void (T::*function)(), bool bOnlySingleInput) 64 64 { 65 struct InputBufferListenerTuple newListener = { listener, (void (InputBufferListener::*)())function, true, bOnlySingleInput, ' '};65 struct InputBufferListenerTuple newListener = {dynamic_cast<InputBufferListener*>(listener), (void (InputBufferListener::*)())function, true, bOnlySingleInput, ' '}; 66 66 this->listeners_.insert(this->listeners_.end(), newListener); 67 67 } … … 69 69 void registerListener(T* listener, void (T::*function)() const, bool bOnlySingleInput) 70 70 { 71 struct InputBufferListenerTuple newListener = { listener, (void (InputBufferListener::*)())function, true, bOnlySingleInput, ' '};71 struct InputBufferListenerTuple newListener = {dynamic_cast<InputBufferListener*>(listener), (void (InputBufferListener::*)())function, true, bOnlySingleInput, ' '}; 72 72 this->listeners_.insert(this->listeners_.end(), newListener); 73 73 } … … 76 76 void registerListener(T* listener, void (T::*function)(), char char_, bool bOnlySingleInput) 77 77 { 78 struct InputBufferListenerTuple newListener = { listener, (void (InputBufferListener::*)())function, false, bOnlySingleInput, char_};78 struct InputBufferListenerTuple newListener = {dynamic_cast<InputBufferListener*>(listener), (void (InputBufferListener::*)())function, false, bOnlySingleInput, char_}; 79 79 this->listeners_.insert(this->listeners_.end(), newListener); 80 80 } … … 82 82 void registerListener(T* listener, void (T::*function)() const, char char_, bool bOnlySingleInput) 83 83 { 84 struct InputBufferListenerTuple newListener = { listener, (void (InputBufferListener::*)())function, false, bOnlySingleInput, char_};84 struct InputBufferListenerTuple newListener = {dynamic_cast<InputBufferListener*>(listener), (void (InputBufferListener::*)())function, false, bOnlySingleInput, char_}; 85 85 this->listeners_.insert(this->listeners_.end(), newListener); 86 86 }
Note: See TracChangeset
for help on using the changeset viewer.