aboutsummaryrefslogtreecommitdiffstats
path: root/src/dabInputDmbFile.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/dabInputDmbFile.cpp
parentf0b272d734469552b9747ec3e00a5a3a22811749 (diff)
downloaddabmux-32bdfb274ec20318dd7d45fb62cd6e51323453f7.tar.gz
dabmux-32bdfb274ec20318dd7d45fb62cd6e51323453f7.tar.bz2
dabmux-32bdfb274ec20318dd7d45fb62cd6e51323453f7.zip
Replace NULL by nullptr
Diffstat (limited to 'src/dabInputDmbFile.cpp')
-rw-r--r--src/dabInputDmbFile.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/dabInputDmbFile.cpp b/src/dabInputDmbFile.cpp
index 423d644..17bd72d 100644
--- a/src/dabInputDmbFile.cpp
+++ b/src/dabInputDmbFile.cpp
@@ -42,14 +42,14 @@ struct dabInputOperations dabInputDmbFileOperations = {
dabInputDmbFileInit,
dabInputDmbFileOpen,
dabInputSetbuf,
- NULL,
- NULL,
- NULL,
+ nullptr,
+ nullptr,
+ nullptr,
dabInputDmbFileRead,
dabInputSetbitrate,
dabInputDmbFileClose,
dabInputDmbFileClean,
- NULL
+ nullptr
};
@@ -58,7 +58,7 @@ int dabInputDmbFileInit(void** args)
dabInputDmbFileData* input = new dabInputDmbFileData;
memset(&input->stats, 0, sizeof(input->stats));
input->stats.id = dabInputFifoData::nb++;
- input->file = NULL;
+ input->file = nullptr;
input->bufferLength = 0;
input->dmb = new Dmb();
*args = input;
@@ -73,7 +73,7 @@ int dabInputDmbFileOpen(void* args, const char* inputName)
dabInputDmbFileData* input = (dabInputDmbFileData*)args;
input->file = fopen(inputName, "r");
- if (input->file == NULL) {
+ if (input->file == nullptr) {
perror(inputName);
returnCode = -1;
}
@@ -138,7 +138,7 @@ int dabInputDmbFileClose(void* args)
{
dabInputDmbFileData* input = (dabInputDmbFileData*)args;
- if (input->file != NULL) {
+ if (input->file != nullptr) {
if (fclose(input->file)) {
perror("");
return -1;