Handle all cases in switch instead of using "default"
No real changes, just clean up the code a bit to make sure we get a -Wswitch if any elements are added to wxDisplayType enum in the future.
This commit is contained in:
parent
df6366ff57
commit
d128afe1e8
1 changed files with 4 additions and 2 deletions
|
|
@ -750,9 +750,11 @@ bool wxGLCanvasEGL::IsShownOnScreen() const
|
|||
return GetXWindow() && wxGLCanvasBase::IsShownOnScreen();
|
||||
case wxDisplayWayland:
|
||||
return m_readyToDraw && wxGLCanvasBase::IsShownOnScreen();
|
||||
default:
|
||||
return false;
|
||||
case wxDisplayNone:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif // wxUSE_GLCANVAS && wxUSE_GLCANVAS_EGL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue