proper braces avoiding potential dangling else resulting from expansion

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2012-06-13 16:42:08 +00:00
parent eebddb377e
commit ccef0e708a

View File

@@ -39,7 +39,9 @@ WXGLContext WXGLCreateContext( WXGLPixelFormat pixelFormat, WXGLContext shareCon
{ {
WXGLContext context = [[NSOpenGLContext alloc] initWithFormat:pixelFormat shareContext: shareContext]; WXGLContext context = [[NSOpenGLContext alloc] initWithFormat:pixelFormat shareContext: shareContext];
if ( !context ) if ( !context )
{
wxFAIL_MSG("NSOpenGLContext creation failed"); wxFAIL_MSG("NSOpenGLContext creation failed");
}
return context ; return context ;
} }