]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbar/mountpointobservercache.h
Modernize: Use override where possible
[dolphin.git] / src / statusbar / mountpointobservercache.h
index 425000645b7eb4b90aafca6fef8d62f3292e53a4..74cef0674b646c94d6a60c7de8d62d4a74fa49e8 100644 (file)
@@ -31,15 +31,15 @@ class MountPointObserverCache : public QObject
     Q_OBJECT
 
     MountPointObserverCache();
-    virtual ~MountPointObserverCache();
+    ~MountPointObserverCache() override;
 
 public:
     static MountPointObserverCache* instance();
 
     /**
-     * Returns a MountPointObserver for the given \a path. A new observer is created if necessary.
+     * Returns a MountPointObserver for the given \a url. A new observer is created if necessary.
      */
-    MountPointObserver* observerForPath(const QString& path);
+    MountPointObserver* observerForUrl(const QUrl& url);
 
 private slots:
     /**
@@ -48,8 +48,8 @@ private slots:
     void slotObserverDestroyed(QObject* observer);
 
 private:
-    QHash<QString, MountPointObserver*> m_observerForMountPoint;
-    QHash<QObject*, QString> m_mountPointForObserver;
+    QHash<QUrl, MountPointObserver*> m_observerForMountPoint;
+    QHash<QObject*, QUrl> m_mountPointForObserver;
     QTimer* m_updateTimer;
 
     friend class MountPointObserverCacheSingleton;