mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
clang-modernize -use-nullptr
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
This commit is contained in:
parent
f28116b7da
commit
d802d39281
292 changed files with 1526 additions and 1526 deletions
|
@ -18,7 +18,7 @@ const std::string DefaultPort(const int index)
|
|||
|
||||
UDPWrapper::UDPWrapper(int indx, const char* const _name) :
|
||||
ControllerEmu::ControlGroup(_name,GROUP_TYPE_UDPWII),
|
||||
inst(NULL), index(indx),
|
||||
inst(nullptr), index(indx),
|
||||
updIR(false),updAccel(false),
|
||||
updButt(false),udpEn(false)
|
||||
, port(DefaultPort(indx))
|
||||
|
@ -68,7 +68,7 @@ void UDPWrapper::SaveConfig(IniFile::Section *sec, const std::string& defdev, co
|
|||
|
||||
void UDPWrapper::Refresh()
|
||||
{
|
||||
bool udpAEn=(inst!=NULL);
|
||||
bool udpAEn=(inst!=nullptr);
|
||||
if (udpEn&&udpAEn)
|
||||
{
|
||||
if (strcmp(inst->getPort(),port.c_str()))
|
||||
|
@ -82,7 +82,7 @@ void UDPWrapper::Refresh()
|
|||
{
|
||||
if (inst)
|
||||
delete inst;
|
||||
inst = NULL;
|
||||
inst = nullptr;
|
||||
return;
|
||||
}
|
||||
//else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue