From a8536b0634fc9ac4c40f197f96d5c3e8405072b8 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Wed, 12 Jul 2023 18:52:25 +0200 Subject: [PATCH] Remove extra ; --- src/controller.h | 2 +- src/filetransferpseudojob.h | 2 +- src/models/actionsmodel.h | 2 +- src/models/completionmodel.h | 2 +- src/models/customemojimodel.h | 2 +- src/models/devicesmodel.h | 2 +- src/models/emojimodel.h | 2 +- src/models/imagepacksmodel.h | 2 +- src/models/messageeventmodel.h | 2 +- src/models/pushrulemodel.h | 4 ++-- src/models/searchmodel.h | 2 +- src/models/statemodel.h | 2 +- src/neochatroom.h | 4 ++-- src/notificationsmanager.h | 2 +- 14 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/controller.h b/src/controller.h index 2c074e8d4..8357635de 100644 --- a/src/controller.h +++ b/src/controller.h @@ -116,7 +116,7 @@ public: Wrong, /**< The current password entered was wrong. */ Other, /**< An unknown problem occurred. */ }; - Q_ENUM(PasswordStatus); + Q_ENUM(PasswordStatus) static Controller &instance(); diff --git a/src/filetransferpseudojob.h b/src/filetransferpseudojob.h index ac8a783ec..6de698d6c 100644 --- a/src/filetransferpseudojob.h +++ b/src/filetransferpseudojob.h @@ -20,7 +20,7 @@ public: Download, Upload, }; - Q_ENUM(Operation); + Q_ENUM(Operation) FileTransferPseudoJob(Operation operation, const QString &srcDest, const QString &path); /** diff --git a/src/models/actionsmodel.h b/src/models/actionsmodel.h index a8c79bcd5..962d3f4c3 100644 --- a/src/models/actionsmodel.h +++ b/src/models/actionsmodel.h @@ -61,7 +61,7 @@ public: CompletionType, /**< The completion type (always "action" for this model). */ Parameters, /**< The input parameters expected by the action. */ }; - Q_ENUM(Roles); + Q_ENUM(Roles) /** * @brief Get the given role value at the given index. diff --git a/src/models/completionmodel.h b/src/models/completionmodel.h index fe7945d91..6e80ffc82 100644 --- a/src/models/completionmodel.h +++ b/src/models/completionmodel.h @@ -69,7 +69,7 @@ public: Icon, /**< The icon to show. */ ReplacedText, /**< The text to replace the input text with for the completion. */ }; - Q_ENUM(Roles); + Q_ENUM(Roles) CompletionModel(QObject *parent = nullptr); diff --git a/src/models/customemojimodel.h b/src/models/customemojimodel.h index af75f0cbe..ce4e2f7a7 100644 --- a/src/models/customemojimodel.h +++ b/src/models/customemojimodel.h @@ -41,7 +41,7 @@ public: ReplacedTextRole = 52, /**< The name of the emoji. For compatibility with EmojiModel. */ DescriptionRole = 53, /**< Invalid, reserved. For compatibility with EmojiModel. */ }; - Q_ENUM(Roles); + Q_ENUM(Roles) static CustomEmojiModel &instance() { diff --git a/src/models/devicesmodel.h b/src/models/devicesmodel.h index 7e5165bf7..6dfc50952 100644 --- a/src/models/devicesmodel.h +++ b/src/models/devicesmodel.h @@ -40,7 +40,7 @@ public: LastIp, /**< The IP address where this device was last seen. */ LastTimestamp, /**< The timestamp when this devices was last seen. */ }; - Q_ENUM(Roles); + Q_ENUM(Roles) DevicesModel(QObject *parent = nullptr); diff --git a/src/models/emojimodel.h b/src/models/emojimodel.h index bb9e06bcf..e71d217ef 100644 --- a/src/models/emojimodel.h +++ b/src/models/emojimodel.h @@ -95,7 +95,7 @@ public: ReplacedTextRole = 52, /**< The text to replace the short name with (i.e. the unicode character). */ DescriptionRole = 53, /**< The long description of an emoji. */ }; - Q_ENUM(RoleNames); + Q_ENUM(RoleNames) /** * @brief Defines the potential categories an emoji can be placed in. diff --git a/src/models/imagepacksmodel.h b/src/models/imagepacksmodel.h index 993e0c382..3c47b5084 100644 --- a/src/models/imagepacksmodel.h +++ b/src/models/imagepacksmodel.h @@ -47,7 +47,7 @@ public: AttributionRole, /**< The attribution for the pack author(s). */ IdRole, /**< The ID of the image pack. */ }; - Q_ENUM(Roles); + Q_ENUM(Roles) explicit ImagePacksModel(QObject *parent = nullptr); diff --git a/src/models/messageeventmodel.h b/src/models/messageeventmodel.h index 66d86842d..522518edc 100644 --- a/src/models/messageeventmodel.h +++ b/src/models/messageeventmodel.h @@ -56,7 +56,7 @@ public: LiveLocation, /**< The initial event of a shared live location (i.e., the place where this is supposed to be shown in the timeline). */ Other, /**< Anything that cannot be classified as another type. */ }; - Q_ENUM(DelegateType); + Q_ENUM(DelegateType) /** * @brief Defines the model roles. diff --git a/src/models/pushrulemodel.h b/src/models/pushrulemodel.h index c7ebee2c2..4a7b25e32 100644 --- a/src/models/pushrulemodel.h +++ b/src/models/pushrulemodel.h @@ -32,7 +32,7 @@ public: Sender, /**< These rules configure notification behaviour for messages from a specific Matrix user ID. */ Underride, /**< These are identical to override rules, but have a lower priority than content, room and sender rules. */ }; - Q_ENUM(Kind); + Q_ENUM(Kind) /** * @brief Translate the Kind enum value to a human readable string. @@ -92,7 +92,7 @@ public: */ Undefined, }; - Q_ENUM(Section); + Q_ENUM(Section) /** * @brief Translate the Section enum value to a human readable string. diff --git a/src/models/searchmodel.h b/src/models/searchmodel.h index f3da43d35..2b481aa95 100644 --- a/src/models/searchmodel.h +++ b/src/models/searchmodel.h @@ -85,7 +85,7 @@ public: LinkPreviewRole, SourceRole, }; - Q_ENUM(Roles); + Q_ENUM(Roles) explicit SearchModel(QObject *parent = nullptr); QString searchText() const; diff --git a/src/models/statemodel.h b/src/models/statemodel.h index bb9cf426c..cc47db135 100644 --- a/src/models/statemodel.h +++ b/src/models/statemodel.h @@ -29,7 +29,7 @@ public: TypeRole = 0, /**< The type of the state event. */ StateKeyRole, /**< The state key of the state event. */ }; - Q_ENUM(Roles); + Q_ENUM(Roles) explicit StateModel(QObject *parent = nullptr); diff --git a/src/neochatroom.h b/src/neochatroom.h index 957852bb1..3d88c349b 100644 --- a/src/neochatroom.h +++ b/src/neochatroom.h @@ -30,7 +30,7 @@ public: MentionKeyword, /**< Notifications only for local user mentions and keywords. */ All, /**< Notifications for all messages. */ }; - Q_ENUM(State); + Q_ENUM(State) }; /** @@ -386,7 +386,7 @@ public: Info, /**< Info message, typically highlight color. */ Error, /**< Error message, typically red. */ }; - Q_ENUM(MessageType); + Q_ENUM(MessageType) explicit NeoChatRoom(Quotient::Connection *connection, QString roomId, Quotient::JoinState joinState = {}); diff --git a/src/notificationsmanager.h b/src/notificationsmanager.h index 5bb4ed5d0..d57ed41c7 100644 --- a/src/notificationsmanager.h +++ b/src/notificationsmanager.h @@ -36,7 +36,7 @@ public: Highlight, /**< Push notifications are on, also the event should be highlighted in chat. */ NoisyHighlight, /**< Push notifications are on, also trigger a notification sound and highlight in chat. */ }; - Q_ENUM(Action); + Q_ENUM(Action) }; /**