]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbar/spaceinfoobserver.cpp
Modernize: Use nullptr everywhere
[dolphin.git] / src / statusbar / spaceinfoobserver.cpp
index 0fb018727c5e7ea68d583c4f633621c886ab3b26..8f45c18f84b3c8394a922266f1ece7bf3126216d 100644 (file)
@@ -25,7 +25,7 @@
 
 SpaceInfoObserver::SpaceInfoObserver(const QUrl& url, QObject* parent) :
     QObject(parent),
-    m_mountPointObserver(0),
+    m_mountPointObserver(nullptr),
     m_dataSize(0),
     m_dataAvailable(0)
 {
@@ -39,7 +39,7 @@ SpaceInfoObserver::~SpaceInfoObserver()
 {
     if (m_mountPointObserver) {
         m_mountPointObserver->deref();
-        m_mountPointObserver = 0;
+        m_mountPointObserver = nullptr;
     }
 }
 
@@ -60,7 +60,7 @@ void SpaceInfoObserver::setUrl(const QUrl& url)
         if (m_mountPointObserver) {
             disconnect(m_mountPointObserver, &MountPointObserver::spaceInfoChanged, this, &SpaceInfoObserver::spaceInfoChanged);
             m_mountPointObserver->deref();
-            m_mountPointObserver = 0;
+            m_mountPointObserver = nullptr;
         }
 
         m_mountPointObserver = newObserver;