]> sigrok.org Git - pulseview.git/commitdiff
Fix two clang-tidy warnings.
authorUwe Hermann <redacted>
Sun, 1 Apr 2018 17:28:43 +0000 (19:28 +0200)
committerUwe Hermann <redacted>
Sun, 1 Apr 2018 17:28:43 +0000 (19:28 +0200)
pv/dialogs/settings.cpp
pv/logging.cpp

index bde6f1676c8a4bdf61178e546e08e702697c5913..b0ef922a8ed0a1d957d900fbcd36843dde17a86f 100644 (file)
@@ -670,7 +670,7 @@ void Settings::on_log_popOut_clicked(bool checked)
        (void)checked;
 
        // Create the window as a sub-window so it closes when the main window closes
-       QMainWindow *window = new QMainWindow(0, Qt::SubWindow);
+       QMainWindow *window = new QMainWindow(nullptr, Qt::SubWindow);
 
        window->setObjectName(QString::fromUtf8("Log Window"));
        window->setWindowTitle(tr("%1 Log").arg(PV_TITLE));
index 1d4eb7c9b92ee29b6a806fa8c9464fa05765d81a..9740690e7f33e87364a4a915c22499127b3f0cc2 100644 (file)
@@ -36,7 +36,7 @@ const int Logging::MAX_BUFFER_SIZE = 50000;
 
 Logging::~Logging()
 {
-       qInstallMessageHandler(0);
+       qInstallMessageHandler(nullptr);
        sr_log_callback_set_default();
 #ifdef ENABLE_DECODE
        srd_log_callback_set_default();