cast properly
This commit is contained in:
@@ -77,7 +77,7 @@ template <class WindowType> class Screen : public BasicScreen
|
||||
|
||||
template <class WindowType> void *&Screen<WindowType>::Cmp()
|
||||
{
|
||||
return *(void **)(void *)&w;
|
||||
return reinterpret_cast<void *&>(w);
|
||||
}
|
||||
|
||||
template <class WindowType> WindowType *&Screen<WindowType>::Main()
|
||||
|
||||
Reference in New Issue
Block a user