@@ -243,15 +243,15 @@ void BitcoinApplication::createOptionsModel(bool resetSettings)
243243
244244void BitcoinApplication::createWindow (const NetworkStyle *networkStyle)
245245{
246- window = new BitcoinGUI (m_node, platformStyle, networkStyle, 0 );
246+ window = new BitcoinGUI (m_node, platformStyle, networkStyle, nullptr );
247247
248248 pollShutdownTimer = new QTimer (window);
249249 connect (pollShutdownTimer, &QTimer::timeout, window, &BitcoinGUI::detectShutdown);
250250}
251251
252252void BitcoinApplication::createSplashScreen (const NetworkStyle *networkStyle)
253253{
254- SplashScreen *splash = new SplashScreen (m_node, 0 , networkStyle);
254+ SplashScreen *splash = new SplashScreen (m_node, nullptr , networkStyle);
255255 // We don't hold a direct pointer to the splash screen after creation, but the splash
256256 // screen will take care of deleting itself when finish() happens.
257257 splash->show ();
@@ -429,7 +429,7 @@ void BitcoinApplication::shutdownResult()
429429
430430void BitcoinApplication::handleRunawayException (const QString &message)
431431{
432- QMessageBox::critical (0 , " Runaway exception" , BitcoinGUI::tr (" A fatal error occurred. Bitcoin can no longer continue safely and will quit." ) + QString (" \n\n " ) + message);
432+ QMessageBox::critical (nullptr , " Runaway exception" , BitcoinGUI::tr (" A fatal error occurred. Bitcoin can no longer continue safely and will quit." ) + QString (" \n\n " ) + message);
433433 ::exit (EXIT_FAILURE);
434434}
435435
@@ -503,7 +503,7 @@ int GuiMain(int argc, char* argv[])
503503 SetupUIArgs ();
504504 std::string error;
505505 if (!node->parseParameters (argc, argv, error)) {
506- QMessageBox::critical (0 , QObject::tr (PACKAGE_NAME),
506+ QMessageBox::critical (nullptr , QObject::tr (PACKAGE_NAME),
507507 QObject::tr (" Error parsing command line arguments: %1." ).arg (QString::fromStdString (error)));
508508 return EXIT_FAILURE;
509509 }
@@ -540,12 +540,12 @@ int GuiMain(int argc, char* argv[])
540540 // / - Do not call GetDataDir(true) before this step finishes
541541 if (!fs::is_directory (GetDataDir (false )))
542542 {
543- QMessageBox::critical (0 , QObject::tr (PACKAGE_NAME),
544- QObject::tr (" Error: Specified data directory \" %1\" does not exist." ).arg (QString::fromStdString (gArgs .GetArg (" -datadir" , " " ))));
543+ QMessageBox::critical (nullptr , QObject::tr (PACKAGE_NAME),
544+ QObject::tr (" Error: Specified data directory \" %1\" does not exist." ).arg (QString::fromStdString (gArgs .GetArg (" -datadir" , " " ))));
545545 return EXIT_FAILURE;
546546 }
547547 if (!node->readConfigFiles (error)) {
548- QMessageBox::critical (0 , QObject::tr (PACKAGE_NAME),
548+ QMessageBox::critical (nullptr , QObject::tr (PACKAGE_NAME),
549549 QObject::tr (" Error: Cannot parse configuration file: %1." ).arg (QString::fromStdString (error)));
550550 return EXIT_FAILURE;
551551 }
@@ -560,7 +560,7 @@ int GuiMain(int argc, char* argv[])
560560 try {
561561 node->selectParams (gArgs .GetChainName ());
562562 } catch (std::exception &e) {
563- QMessageBox::critical (0 , QObject::tr (PACKAGE_NAME), QObject::tr (" Error: %1" ).arg (e.what ()));
563+ QMessageBox::critical (nullptr , QObject::tr (PACKAGE_NAME), QObject::tr (" Error: %1" ).arg (e.what ()));
564564 return EXIT_FAILURE;
565565 }
566566#ifdef ENABLE_WALLET
0 commit comments