From 60516dd77c6b32379fe4103ace3879ee71a5cda4 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 20 Nov 2015 20:35:54 +0100 Subject: Missed a couple of NULL conversions. --- plugingui/directory.cc | 2 +- plugingui/listboxbasic.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugingui/directory.cc b/plugingui/directory.cc index 80eef3f..c7a17b2 100644 --- a/plugingui/directory.cc +++ b/plugingui/directory.cc @@ -159,7 +159,7 @@ Directory::EntryList Directory::listFiles(std::string path, unsigned char filter std::vector files; struct dirent *entry; - while((entry = readdir(dir)) != NULL) + while((entry = readdir(dir)) != nullptr) { std::string name = entry->d_name; if(name == ".") diff --git a/plugingui/listboxbasic.cc b/plugingui/listboxbasic.cc index d1002b6..10d6c66 100644 --- a/plugingui/listboxbasic.cc +++ b/plugingui/listboxbasic.cc @@ -141,7 +141,7 @@ void ListBoxBasic::clearSelectedValue() void ListBoxBasic::onScrollBarValueChange(int value) { - repaintEvent(NULL); + repaintEvent(nullptr); } void ListBoxBasic::repaintEvent(RepaintEvent* repaintEvent) @@ -153,7 +153,7 @@ void ListBoxBasic::repaintEvent(RepaintEvent* repaintEvent) int w = width(); int h = height(); - if(w == 0 || h == 0) + if((w == 0) || (h == 0)) { return; } -- cgit v1.2.3