1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 06:15:32 +00:00

Avoid virtual call in GraphicsWindowSDL2 ctor

/home/elsid/dev/openmw/components/sdlutil/sdlgraphicswindow.cpp:23:8: warning: Call to virtual function during construction [clang-analyzer-optin.cplusplus.VirtualCall]
    if(valid())
       ^
/home/elsid/dev/openmw/components/sdlutil/sdlgraphicswindow.cpp:23:8: note: This constructor of an object of type 'GraphicsWindowSDL2' has not returned when the virtual method was called
/home/elsid/dev/openmw/components/sdlutil/sdlgraphicswindow.cpp:23:8: note: Call to virtual function during construction
This commit is contained in:
elsid 2019-11-17 17:01:30 +01:00
parent 4cd2ff9a3d
commit b07a6afa91
No known key found for this signature in database
GPG key ID: D27B8E8D10A2896B

View file

@ -20,7 +20,7 @@ GraphicsWindowSDL2::GraphicsWindowSDL2(osg::GraphicsContext::Traits *traits)
_traits = traits;
init();
if(valid())
if(GraphicsWindowSDL2::valid())
{
setState(new osg::State);
getState()->setGraphicsContext(this);