mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Replace the zeroing of pointers with nullptr
This commit is contained in:
parent
1055cc0f45
commit
3e4099fe5b
47 changed files with 98 additions and 98 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue