浏览代码

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

Tom Mason 11 年之前
父节点
当前提交
1c98844a68
共有 1 个文件被更改,包括 2 次插入2 次删除
  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;