Mercurial > hg > sonic-visualiser
diff main/main.cpp @ 2196:813bc4295860 bqaudiostream
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 23 Jan 2019 14:45:46 +0000 |
parents | 0b15f3b16776 |
children | 76b1c50f1f6d |
line wrap: on
line diff
--- a/main/main.cpp Wed Jan 23 13:51:49 2019 +0000 +++ b/main/main.cpp Wed Jan 23 14:45:46 2019 +0000 @@ -201,13 +201,13 @@ QApplication(argc, argv), m_readyForFiles(false), m_filepathQueue(QStringList()), - m_mainWindow(0) + m_mainWindow(nullptr) { } - virtual ~SVApplication() { } + ~SVApplication() override { } void setMainWindow(MainWindow *mw) { m_mainWindow = mw; } - void releaseMainWindow() { m_mainWindow = 0; } + void releaseMainWindow() { m_mainWindow = nullptr; } virtual void commitData(QSessionManager &manager) { if (!m_mainWindow) return; @@ -224,7 +224,7 @@ protected: MainWindow *m_mainWindow; - bool event(QEvent *); + bool event(QEvent *) override; }; int @@ -281,7 +281,7 @@ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); - SVSplash *splash = 0; + SVSplash *splash = nullptr; QSettings settings; @@ -492,7 +492,7 @@ case QEvent::FileOpen: thePath = static_cast<QFileOpenEvent *>(event)->file(); if(m_readyForFiles) - handleFilepathArgument(thePath, NULL); + handleFilepathArgument(thePath, nullptr); else m_filepathQueue.append(thePath); return true;