all: fix clang 18 lints

This commit is contained in:
outfoxxed 2024-11-24 02:27:49 -08:00
parent e957e88ccb
commit 2571766d3b
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
27 changed files with 47 additions and 35 deletions

View file

@ -8,6 +8,7 @@
#include <qobject.h>
#include <qqmlintegration.h>
#include <qtmetamacros.h>
#include <qtypes.h>
#include "../../core/retainable.hpp"
#include "../../core/util.hpp"
@ -24,7 +25,7 @@ class NotificationUrgency: public QObject {
QML_SINGLETON;
public:
enum Enum {
enum Enum : quint8 {
Low = 0,
Normal = 1,
Critical = 2,
@ -42,7 +43,7 @@ class NotificationCloseReason: public QObject {
QML_SINGLETON;
public:
enum Enum {
enum Enum : quint8 {
/// The notification expired due to a timeout.
Expired = 1,
/// The notification was explicitly dismissed by the user.

View file

@ -124,7 +124,7 @@ void NotificationServer::tryRegister() {
}
void NotificationServer::onServiceUnregistered(const QString& /*unused*/) {
qCDebug(logNotifications) << "Active notification server unregistered, attempting registration";
this->tryRegister();
NotificationServer::tryRegister();
}
void NotificationServer::CloseNotification(uint id) {

View file

@ -63,7 +63,7 @@ signals:
// NOLINTEND
private slots:
void onServiceUnregistered(const QString& service);
static void onServiceUnregistered(const QString& service);
private:
explicit NotificationServer();