summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-19 20:36:57 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-19 21:32:41 +0100
commit12764781c6053898925484dee07e71a52abc4f26 (patch)
tree3f89294c8053770ac4e1e4769bfd28a234554ee6 /rbutil/rbutilqt/base/bootloaderinstallhex.cpp
parentf608de723c863abc0e32cd7584c046eceb910d78 (diff)
downloadrockbox-12764781c6.tar.gz
rockbox-12764781c6.tar.bz2
rockbox-12764781c6.zip
rbutil: Modernize code to use C++11 nullptr.
Change-Id: I112cf95122a896cdb30a823b4c1f49831273dc7e
Diffstat (limited to 'rbutil/rbutilqt/base/bootloaderinstallhex.cpp')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallhex.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallhex.cpp b/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
index 0c8087eaf4..931c7dfa2e 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
@@ -32,11 +32,11 @@ struct md5s {
struct md5s md5sums[] = {
#include "irivertools/h100sums.h"
- { 0, 0 },
+ { nullptr, nullptr },
#include "irivertools/h120sums.h"
- { 0, 0 },
+ { nullptr, nullptr },
#include "irivertools/h300sums.h"
- { 0, 0 }
+ { nullptr, nullptr }
};
@@ -86,7 +86,7 @@ bool BootloaderInstallHex::install(void)
m_model = 4;
// 3: h300, 2: h120, 1: h100, 0:invalid
while(i--) {
- if(md5sums[i].orig == 0)
+ if(md5sums[i].orig == nullptr)
m_model--;
if(!qstrcmp(md5sums[i].orig, hash.toLatin1()))
break;