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/InputConfigDiag.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/Core/DolphinWX/InputConfigDiag.cpp') diff --git a/Source/Core/DolphinWX/InputConfigDiag.cpp b/Source/Core/DolphinWX/InputConfigDiag.cpp index fff544d2dd..6cac0e4d25 100644 --- a/Source/Core/DolphinWX/InputConfigDiag.cpp +++ b/Source/Core/DolphinWX/InputConfigDiag.cpp @@ -381,8 +381,8 @@ inline bool IsAlphabetic(wxString &str) inline void GetExpressionForControl(wxString &expr, wxString &control_name, - DeviceQualifier *control_device = NULL, - DeviceQualifier *default_device = NULL) + DeviceQualifier *control_device = nullptr, + DeviceQualifier *default_device = nullptr) { expr = ""; @@ -748,7 +748,7 @@ ControlGroupBox::ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWin : wxBoxSizer(wxVERTICAL) , control_group(group) { - static_bitmap = NULL; + static_bitmap = nullptr; wxFont m_SmallFont(7, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL); for (auto& control : group->controls) @@ -915,7 +915,7 @@ ControlGroupsSizer::ControlGroupsSizer(ControllerEmu* const controller, wxWindow { size_t col_size = 0; - wxBoxSizer* stacked_groups = NULL; + wxBoxSizer* stacked_groups = nullptr; for (auto& group : controller->groups) { ControlGroupBox* control_group_box = new ControlGroupBox(group.get(), parent, eventsink); @@ -925,7 +925,7 @@ ControlGroupsSizer::ControlGroupsSizer(ControllerEmu* const controller, wxWindow const size_t grp_size = group->controls.size() + group->settings.size(); col_size += grp_size; - if (col_size > 8 || NULL == stacked_groups) + if (col_size > 8 || nullptr == stacked_groups) { if (stacked_groups) Add(stacked_groups, 0, /*wxEXPAND|*/wxBOTTOM|wxRIGHT, 5); -- cgit v1.2.3