[Commits] SDL: code style: wrap a single-statement if in braces.

libsdl.org revision control commits-owner at libsdl.org
Fri May 26 21:33:30 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/5fde5f7e2912
changeset: 11037:5fde5f7e2912
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Sat May 27 00:33:26 2017 -0400
description:
code style: wrap a single-statement if in braces.

diffstat:

 src/video/windows/SDL_windowsmessagebox.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r c5346d5c3c79 -r 5fde5f7e2912 src/video/windows/SDL_windowsmessagebox.c
--- a/src/video/windows/SDL_windowsmessagebox.c	Sat May 27 00:30:06 2017 -0400
+++ b/src/video/windows/SDL_windowsmessagebox.c	Sat May 27 00:33:26 2017 -0400
@@ -472,9 +472,9 @@
 
     /* If we have a parent window, get the Instance and HWND for them
      * so that our little dialog gets exclusive focus at all times. */
-    if (messageboxdata->window)
+    if (messageboxdata->window) {
         ParentWindow = ((SDL_WindowData*)messageboxdata->window->driverdata)->hwnd;
-
+    }
 
     which = DialogBoxIndirect(NULL, (DLGTEMPLATE*)dialog->lpDialog, ParentWindow, (DLGPROC)MessageBoxDialogProc);
     *buttonid = buttons[which].buttonid;


More information about the commits mailing list