diff options
| author | Matthew Parlane <parlane@gmail.com> | 2014-03-10 09:24:09 +1300 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2014-03-10 09:24:09 +1300 |
| commit | 633dc75e857d649ffab7c4398e92536bccc9e1de (patch) | |
| tree | f9aa8831a0731ea246bd921d979f4bffa7f07bd0 /Source/Core/InputCommon/UDPWrapper.cpp | |
| parent | f4012638672472afdbd9956229f273a18a77fd77 (diff) | |
| parent | d802d392811be44d34ae9cd23f616db93e54c50f (diff) | |
Merge pull request #142 from Tilka/clang-modernize
Run clang-modernize and manually fix the result
Diffstat (limited to 'Source/Core/InputCommon/UDPWrapper.cpp')
| -rw-r--r-- | Source/Core/InputCommon/UDPWrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/UDPWrapper.cpp b/Source/Core/InputCommon/UDPWrapper.cpp index 19eb619679..a205fb0280 100644 --- a/Source/Core/InputCommon/UDPWrapper.cpp +++ b/Source/Core/InputCommon/UDPWrapper.cpp @@ -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 |
