summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/bootloaderinstallams.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/bootloaderinstallams.cpp
parentf608de723c863abc0e32cd7584c046eceb910d78 (diff)
downloadrockbox-12764781c6053898925484dee07e71a52abc4f26.tar.gz
rockbox-12764781c6053898925484dee07e71a52abc4f26.zip
rbutil: Modernize code to use C++11 nullptr.
Change-Id: I112cf95122a896cdb30a823b4c1f49831273dc7e
Diffstat (limited to 'rbutil/rbutilqt/base/bootloaderinstallams.cpp')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallams.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallams.cpp b/rbutil/rbutilqt/base/bootloaderinstallams.cpp
index 3905ae9fd3..524ce99e98 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallams.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallams.cpp
@@ -93,7 +93,7 @@ void BootloaderInstallAms::installStage2(void)
93 rb_packed = load_rockbox_file(bootfile.toLocal8Bit().data(), &model, 93 rb_packed = load_rockbox_file(bootfile.toLocal8Bit().data(), &model,
94 &bootloader_size,&rb_packedsize, 94 &bootloader_size,&rb_packedsize,
95 errstr,sizeof(errstr)); 95 errstr,sizeof(errstr));
96 if (rb_packed == NULL) 96 if (rb_packed == nullptr)
97 { 97 {
98 LOG_ERROR() << "could not load bootloader: " << bootfile; 98 LOG_ERROR() << "could not load bootloader: " << bootfile;
99 emit logItem(errstr, LOGERROR); 99 emit logItem(errstr, LOGERROR);
@@ -106,7 +106,7 @@ void BootloaderInstallAms::installStage2(void)
106 buf = load_of_file(m_offile.toLocal8Bit().data(), model, &len, &sum, 106 buf = load_of_file(m_offile.toLocal8Bit().data(), model, &len, &sum,
107 &firmware_size, &of_packed ,&of_packedsize, 107 &firmware_size, &of_packed ,&of_packedsize,
108 errstr, sizeof(errstr)); 108 errstr, sizeof(errstr));
109 if (buf == NULL) 109 if (buf == nullptr)
110 { 110 {
111 LOG_ERROR() << "could not load OF: " << m_offile; 111 LOG_ERROR() << "could not load OF: " << m_offile;
112 emit logItem(errstr, LOGERROR); 112 emit logItem(errstr, LOGERROR);