mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Replace the zeroing of pointers with nullptr
This commit is contained in:
@@ -47,7 +47,7 @@ void IconProvider::freeInstance()
|
||||
{
|
||||
if (m_instance) {
|
||||
delete m_instance;
|
||||
m_instance = 0;
|
||||
m_instance = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,4 +61,4 @@ QString IconProvider::getIconPath(const QString &iconId)
|
||||
return ":/icons/qbt-theme/" + iconId + ".png";
|
||||
}
|
||||
|
||||
IconProvider *IconProvider::m_instance = 0;
|
||||
IconProvider *IconProvider::m_instance = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user