]> git.saurik.com Git - wxWidgets.git/commitdiff
proper braces avoiding potential dangling else resulting from expansion
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 13 Jun 2012 16:42:08 +0000 (16:42 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 13 Jun 2012 16:42:08 +0000 (16:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/glcanvas.mm

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