diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /protocols/AimOscar/src/tlv.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/AimOscar/src/tlv.cpp')
-rw-r--r-- | protocols/AimOscar/src/tlv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/AimOscar/src/tlv.cpp b/protocols/AimOscar/src/tlv.cpp index 717ef5d4b5..089a0fc17d 100644 --- a/protocols/AimOscar/src/tlv.cpp +++ b/protocols/AimOscar/src/tlv.cpp @@ -28,7 +28,7 @@ TLV::TLV(char* buf) memcpy(value_,&buf[4],length_);
}
else
- value_= NULL;
+ value_= nullptr;
}
TLV::TLV(unsigned short type, unsigned short length, const char* value)
@@ -41,7 +41,7 @@ TLV::TLV(unsigned short type, unsigned short length, const char* value) memcpy(value_, value, length_);
}
else
- value_= NULL;
+ value_= nullptr;
}
TLV::~TLV()
@@ -71,7 +71,7 @@ unsigned char TLV::ubyte(int pos) char* TLV::part(int pos, int length)//returns part of the tlv value
{
- if ((pos + length) > length_) return NULL;
+ if ((pos + length) > length_) return nullptr;
char* value = (char*)mir_alloc(length + 2);
memcpy(value, &value_[pos], length);
|