From d802d392811be44d34ae9cd23f616db93e54c50f Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 9 Mar 2014 21:14:26 +0100 Subject: clang-modernize -use-nullptr and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine --- Source/Core/DolphinWX/MainNoGUI.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Source/Core/DolphinWX/MainNoGUI.cpp') diff --git a/Source/Core/DolphinWX/MainNoGUI.cpp b/Source/Core/DolphinWX/MainNoGUI.cpp index 122a0281f3..ffb3522eae 100644 --- a/Source/Core/DolphinWX/MainNoGUI.cpp +++ b/Source/Core/DolphinWX/MainNoGUI.cpp @@ -60,10 +60,10 @@ void Host_Message(int Id) void* Host_GetRenderHandle() { - return NULL; + return nullptr; } -void* Host_GetInstance() { return NULL; } +void* Host_GetInstance() { return nullptr; } void Host_UpdateTitle(const char* title){}; @@ -293,10 +293,10 @@ int main(int argc, char* argv[]) #endif int ch, help = 0; struct option longopts[] = { - { "exec", no_argument, NULL, 'e' }, - { "help", no_argument, NULL, 'h' }, - { "version", no_argument, NULL, 'v' }, - { NULL, 0, NULL, 0 } + { "exec", no_argument, nullptr, 'e' }, + { "help", no_argument, nullptr, 'h' }, + { "version", no_argument, nullptr, 'v' }, + { nullptr, 0, nullptr, 0 } }; while ((ch = getopt_long(argc, argv, "eh?v", longopts, 0)) != -1) @@ -337,7 +337,7 @@ int main(int argc, char* argv[]) GLWin.platform = EGL_PLATFORM_NONE; #endif #if HAVE_WAYLAND - GLWin.wl_display = NULL; + GLWin.wl_display = nullptr; #endif // No use running the loop when booting fails -- cgit v1.2.3