summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/main.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/main.cpp
parentf608de723c863abc0e32cd7584c046eceb910d78 (diff)
rbutil: Modernize code to use C++11 nullptr.
Change-Id: I112cf95122a896cdb30a823b4c1f49831273dc7e
Diffstat (limited to 'rbutil/rbutilqt/main.cpp')
-rw-r--r--rbutil/rbutilqt/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index eb34337b72..e9a86fd3c3 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -65,7 +65,7 @@ int main( int argc, char ** argv ) {
// check for a configuration file in the program folder.
QSettings *user;
if(QFileInfo(absolutePath + "/RockboxUtility.ini").isFile())
- user = new QSettings(absolutePath + "/RockboxUtility.ini", QSettings::IniFormat, 0);
+ user = new QSettings(absolutePath + "/RockboxUtility.ini", QSettings::IniFormat, nullptr);
else user = new QSettings(QSettings::IniFormat, QSettings::UserScope, "rockbox.org", "RockboxUtility");
QString applang = QLocale::system().name();
@@ -98,7 +98,7 @@ int main( int argc, char ** argv ) {
QList<QTranslator*> translators;
translators.append(&translator);
translators.append(&qttrans);
- RbUtilQt window(0);
+ RbUtilQt window(nullptr);
RbUtilQt::translators = translators;
window.show();