Browse Source

replace 0s with NULLs, as discussed at https://github.com/libRocket/libRocket/pull/127

Tom Mason 11 years ago
parent
commit
1c98844a68
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Samples/shell/src/x11/ShellX11.cpp

+ 2 - 2
Samples/shell/src/x11/ShellX11.cpp

@@ -198,7 +198,7 @@ void Shell::EventLoop(ShellIdleFunction idle_function)
 		while (XPending(display) > 0)
 		{
 			XEvent event;
-			char *event_type = 0;
+			char *event_type = NULL;
 			XNextEvent(display, &event);
 
 			switch (event.type)
@@ -211,7 +211,7 @@ void Shell::EventLoop(ShellIdleFunction idle_function)
 					if (strcmp(event_type, "WM_PROTOCOLS") == 0)
 						running = false;
 					XFree(event_type);
-					event_type = 0;
+					event_type = NULL;
 				}
 				break;