summaryrefslogtreecommitdiffstats
path: root/src/dabInputFile.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-28 23:44:15 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-28 23:44:15 +0200
commit32bdfb274ec20318dd7d45fb62cd6e51323453f7 (patch)
tree1142386bf9fb2f90738876cc3e572c0be353c868 /src/dabInputFile.cpp
parentf0b272d734469552b9747ec3e00a5a3a22811749 (diff)
downloaddabmux-32bdfb274ec20318dd7d45fb62cd6e51323453f7.tar.gz
dabmux-32bdfb274ec20318dd7d45fb62cd6e51323453f7.tar.bz2
dabmux-32bdfb274ec20318dd7d45fb62cd6e51323453f7.zip
Replace NULL by nullptr
Diffstat (limited to 'src/dabInputFile.cpp')
-rw-r--r--src/dabInputFile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dabInputFile.cpp b/src/dabInputFile.cpp
index 30ab37d..2847caa 100644
--- a/src/dabInputFile.cpp
+++ b/src/dabInputFile.cpp
@@ -38,7 +38,7 @@ int dabInputFileInit(void** args)
data->parity = false;
data->packetLength = 0;
data->packetData = new unsigned char[96];
- data->enhancedPacketData = NULL;
+ data->enhancedPacketData = nullptr;
data->enhancedPacketLength = 0;
data->enhancedPacketWaiting = 0;
@@ -79,12 +79,12 @@ int dabInputFileClose(void* args)
int dabInputFileClean(void** args)
{
dabInputFileData* data = (dabInputFileData*)*args;
- if (data->packetData != NULL) {
+ if (data->packetData != nullptr) {
delete[] data->packetData;
}
- if (data->enhancedPacketData != NULL) {
+ if (data->enhancedPacketData != nullptr) {
for (int i = 0; i < 12; ++i) {
- if (data->enhancedPacketData[i] != NULL) {
+ if (data->enhancedPacketData[i] != nullptr) {
delete[] data->enhancedPacketData[i];
}
}