diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2014-03-09 21:14:26 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2014-03-09 21:14:26 +0100 |
| commit | d802d392811be44d34ae9cd23f616db93e54c50f (patch) | |
| tree | f9aa8831a0731ea246bd921d979f4bffa7f07bd0 /Source/Core/DolphinWX/NetWindow.cpp | |
| parent | f28116b7da6aac6069084596dc4dbf866bdebfd8 (diff) | |
clang-modernize -use-nullptr
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
Diffstat (limited to 'Source/Core/DolphinWX/NetWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/NetWindow.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/Core/DolphinWX/NetWindow.cpp b/Source/Core/DolphinWX/NetWindow.cpp index de7e24ca77..40b13d8d5b 100644 --- a/Source/Core/DolphinWX/NetWindow.cpp +++ b/Source/Core/DolphinWX/NetWindow.cpp @@ -54,10 +54,10 @@ BEGIN_EVENT_TABLE(NetPlayDiag, wxFrame) EVT_COMMAND(wxID_ANY, wxEVT_THREAD, NetPlayDiag::OnThread) END_EVENT_TABLE() -static NetPlayServer* netplay_server = NULL; -static NetPlayClient* netplay_client = NULL; +static NetPlayServer* netplay_server = nullptr; +static NetPlayClient* netplay_client = nullptr; extern CFrame* main_frame; -NetPlayDiag *NetPlayDiag::npd = NULL; +NetPlayDiag *NetPlayDiag::npd = nullptr; std::string BuildGameName(const GameListItem& game) { @@ -227,7 +227,7 @@ NetPlaySetupDiag::~NetPlaySetupDiag() netplay_section.Set("HostPort", WxStrToStr(m_host_port_text->GetValue())); inifile.Save(dolphin_ini); - main_frame->g_NetPlaySetupDiag = NULL; + main_frame->g_NetPlaySetupDiag = nullptr; } void NetPlaySetupDiag::MakeNetPlayDiag(int port, const std::string &game, bool is_hosting) @@ -311,7 +311,7 @@ NetPlayDiag::NetPlayDiag(wxWindow* const parent, const CGameListCtrl* const game const std::string& game, const bool is_hosting) : wxFrame(parent, wxID_ANY, wxT(NETPLAY_TITLEBAR)) , m_selected_game(game) - , m_start_btn(NULL) + , m_start_btn(nullptr) , m_game_list(game_list) { wxPanel* const panel = new wxPanel(this); @@ -409,14 +409,14 @@ NetPlayDiag::~NetPlayDiag() if (netplay_client) { delete netplay_client; - netplay_client = NULL; + netplay_client = nullptr; } if (netplay_server) { delete netplay_server; - netplay_server = NULL; + netplay_server = nullptr; } - npd = NULL; + npd = nullptr; } void NetPlayDiag::OnChat(wxCommandEvent&) @@ -724,6 +724,6 @@ void PadMapDiag::OnAdjust(wxCommandEvent& event) void NetPlay::StopGame() { - if (netplay_client != NULL) + if (netplay_client != nullptr) netplay_client->Stop(); } |
