mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -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
|
@ -59,7 +59,7 @@
|
|||
#include "utils/fs.h"
|
||||
#include "utils/misc.h"
|
||||
|
||||
Preferences *Preferences::m_instance = 0;
|
||||
Preferences *Preferences::m_instance = nullptr;
|
||||
|
||||
Preferences::Preferences() = default;
|
||||
|
||||
|
@ -78,7 +78,7 @@ void Preferences::freeInstance()
|
|||
{
|
||||
if (m_instance) {
|
||||
delete m_instance;
|
||||
m_instance = 0;
|
||||
m_instance = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue