diff widgets/MIDIFileImportDialog.cpp @ 1408:c8a6fd3f9dff fix-static-analysis

Use nullptr throughout
author Chris Cannam
date Mon, 26 Nov 2018 14:33:54 +0000
parents 22b72f0f6a4e
children
line wrap: on
line diff
--- a/widgets/MIDIFileImportDialog.cpp	Mon Nov 26 13:52:57 2018 +0000
+++ b/widgets/MIDIFileImportDialog.cpp	Mon Nov 26 14:33:54 2018 +0000
@@ -47,7 +47,7 @@
 
     bool ok = false;
     QString selected = QInputDialog::getItem
-        (0, tr("Select track or tracks to import"),
+        (nullptr, tr("Select track or tracks to import"),
          tr("<b>Select track to import</b><p>You can only import this file as a single annotation layer, but the file contains more than one track, or notes on more than one channel.<p>Please select the track or merged tracks you wish to import:"),
          available, 0, false, &ok);
     
@@ -67,6 +67,6 @@
 void
 MIDIFileImportDialog::showError(QString error)
 {
-    QMessageBox::critical(0, tr("Error in MIDI file import"), error);
+    QMessageBox::critical(nullptr, tr("Error in MIDI file import"), error);
 }