X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/f65b0899c3666561cafac14f67ab0bb8a5bfa00a..39ee83cebf15b3d492b128d8a52aac7227b756b9:/src/statusbar/mountpointobserver.h diff --git a/src/statusbar/mountpointobserver.h b/src/statusbar/mountpointobserver.h index 9f5346d49..d26a0e7de 100644 --- a/src/statusbar/mountpointobserver.h +++ b/src/statusbar/mountpointobserver.h @@ -40,8 +40,10 @@ class MountPointObserver : public QObject { Q_OBJECT - explicit MountPointObserver(const QUrl& url, QObject* parent = nullptr); - ~MountPointObserver() override {} + explicit MountPointObserver(const QUrl &url, QObject *parent = nullptr); + ~MountPointObserver() override + { + } public: /** @@ -49,7 +51,10 @@ public: * internal reference count is increased then. When the observer is not needed any more, * deref() should be called, which decreases the reference count again. */ - void ref() { ++m_referenceCount; } + void ref() + { + ++m_referenceCount; + } /** * This function can be used to indicate that the caller does not need this MountPointObserver @@ -66,7 +71,7 @@ public: * Returns a MountPointObserver for the given \a url. If the caller intends to continue using * the returned object, it must call its ref() method. */ - static MountPointObserver* observerForUrl(const QUrl& url); + static MountPointObserver *observerForUrl(const QUrl &url); Q_SIGNALS: /** @@ -82,7 +87,7 @@ public Q_SLOTS: void update(); private Q_SLOTS: - void freeSpaceResult(KIO::Job* job, KIO::filesize_t size, KIO::filesize_t available); + void freeSpaceResult(KIO::Job *job, KIO::filesize_t size, KIO::filesize_t available); private: const QUrl m_url;