From: Uwe Hermann Date: Sun, 1 Apr 2018 17:28:43 +0000 (+0200) Subject: Fix two clang-tidy warnings. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=37134086132e66d102d465a50536c31a32b2cf0c;p=pulseview.git Fix two clang-tidy warnings. --- diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index bde6f167..b0ef922a 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -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)); diff --git a/pv/logging.cpp b/pv/logging.cpp index 1d4eb7c9..9740690e 100644 --- a/pv/logging.cpp +++ b/pv/logging.cpp @@ -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();