Replace the zeroing of pointers with nullptr

This commit is contained in:
thalieht 2018-04-15 13:06:31 +03:00 committed by sledgehammer999
parent 667f84995c
commit 9cb190ebe7
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
47 changed files with 98 additions and 98 deletions

View file

@ -56,7 +56,7 @@ struct ScanFoldersModel::PathData
QString downloadPath; // valid for CUSTOM_LOCATION
};
ScanFoldersModel *ScanFoldersModel::m_instance = 0;
ScanFoldersModel *ScanFoldersModel::m_instance = nullptr;
bool ScanFoldersModel::initInstance(QObject *parent)
{
@ -72,7 +72,7 @@ void ScanFoldersModel::freeInstance()
{
if (m_instance) {
delete m_instance;
m_instance = 0;
m_instance = nullptr;
}
}
@ -83,7 +83,7 @@ ScanFoldersModel *ScanFoldersModel::instance()
ScanFoldersModel::ScanFoldersModel(QObject *parent)
: QAbstractListModel(parent)
, m_fsWatcher(0)
, m_fsWatcher(nullptr)
{
configure();
connect(Preferences::instance(), SIGNAL(changed()), SLOT(configure()));