From 49b309247d5938e4f7b14cec06e19061f7072347 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Thu, 11 Jul 2024 00:16:44 -0700 Subject: [PATCH] all: fix formatting --- src/core/desktopentry.cpp | 7 +++---- src/core/desktopentry.hpp | 1 - src/core/proxywindow.cpp | 2 +- src/services/status_notifier/item.cpp | 8 +++++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/desktopentry.cpp b/src/core/desktopentry.cpp index abcb29fd..0fa2d8f3 100644 --- a/src/core/desktopentry.cpp +++ b/src/core/desktopentry.cpp @@ -344,12 +344,11 @@ void DesktopEntryManager::scanPath(const QDir& dir, const QString& prefix) { this->desktopEntries.insert(id, dentry); - if (this->lowercaseDesktopEntries.contains(lowerId)) { qCInfo(logDesktopEntry).nospace() - << "Multiple desktop entries have the same lowercased id " << lowerId - << ". This can cause ambiguity when byId requests are not made with the correct case " - "already."; + << "Multiple desktop entries have the same lowercased id " << lowerId + << ". This can cause ambiguity when byId requests are not made with the correct case " + "already."; this->lowercaseDesktopEntries.remove(lowerId); } diff --git a/src/core/desktopentry.hpp b/src/core/desktopentry.hpp index f268ec51..81cfa8f0 100644 --- a/src/core/desktopentry.hpp +++ b/src/core/desktopentry.hpp @@ -55,7 +55,6 @@ public: static QVector parseExecString(const QString& execString); static void doExec(const QString& execString, const QString& workingDirectory); - public: QString mId; QString mName; diff --git a/src/core/proxywindow.cpp b/src/core/proxywindow.cpp index 41d539ce..fc78f168 100644 --- a/src/core/proxywindow.cpp +++ b/src/core/proxywindow.cpp @@ -1,5 +1,6 @@ #include "proxywindow.hpp" +#include #include #include #include @@ -11,7 +12,6 @@ #include #include #include -#include #include "generation.hpp" #include "qmlglobal.hpp" diff --git a/src/services/status_notifier/item.cpp b/src/services/status_notifier/item.cpp index 85383a0b..9a82198b 100644 --- a/src/services/status_notifier/item.cpp +++ b/src/services/status_notifier/item.cpp @@ -236,7 +236,8 @@ DBusMenu* StatusNotifierItem::menu() const { return this->mMenu; } void StatusNotifierItem::refMenu() { this->menuRefcount++; - qCDebug(logSniMenu) << "Menu of" << this << "gained a reference. Refcount is now" << this->menuRefcount; + qCDebug(logSniMenu) << "Menu of" << this << "gained a reference. Refcount is now" + << this->menuRefcount; if (this->menuRefcount == 1) { this->onMenuPathChanged(); @@ -249,7 +250,8 @@ void StatusNotifierItem::refMenu() { void StatusNotifierItem::unrefMenu() { this->menuRefcount--; - qCDebug(logSniMenu) << "Menu of" << this << "lost a reference. Refcount is now" << this->menuRefcount; + qCDebug(logSniMenu) << "Menu of" << this << "lost a reference. Refcount is now" + << this->menuRefcount; if (this->menuRefcount == 0) { this->onMenuPathChanged(); @@ -258,7 +260,7 @@ void StatusNotifierItem::unrefMenu() { void StatusNotifierItem::onMenuPathChanged() { qCDebug(logSniMenu) << "Updating menu of" << this << "with refcount" << this->menuRefcount - << "path" << this->menuPath.get().path(); + << "path" << this->menuPath.get().path(); if (this->mMenu) { this->mMenu->deleteLater();