Add missing explicit keyword

This commit is contained in:
Laurent Montel
2023-07-15 17:04:45 +02:00
parent 62ecbc8d6b
commit 8d1baab89f
8 changed files with 8 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ class ThumbnailResponse : public QQuickImageResponse
{ {
Q_OBJECT Q_OBJECT
public: public:
ThumbnailResponse(QString mediaId, QSize requestedSize); explicit ThumbnailResponse(QString mediaId, QSize requestedSize);
~ThumbnailResponse() override = default; ~ThumbnailResponse() override = default;
private Q_SLOTS: private Q_SLOTS:

View File

@@ -71,7 +71,7 @@ public:
}; };
Q_ENUM(Roles) Q_ENUM(Roles)
CompletionModel(QObject *parent = nullptr); explicit CompletionModel(QObject *parent = nullptr);
/** /**
* @brief Get the given role value at the given index. * @brief Get the given role value at the given index.

View File

@@ -31,7 +31,7 @@ public:
}; };
Q_ENUM(Roles) Q_ENUM(Roles)
MediaMessageFilterModel(QObject *parent = nullptr); explicit MediaMessageFilterModel(QObject *parent = nullptr);
/** /**
* @brief Custom filter to show only image and video messages. * @brief Custom filter to show only image and video messages.

View File

@@ -16,7 +16,7 @@ class MessageFilterModel : public QSortFilterProxyModel
{ {
Q_OBJECT Q_OBJECT
public: public:
MessageFilterModel(QObject *parent = nullptr); explicit MessageFilterModel(QObject *parent = nullptr);
/** /**
* @brief Custom filter function to remove hidden messages. * @brief Custom filter function to remove hidden messages.

View File

@@ -64,7 +64,7 @@ public:
IsJoinedRole, /**< Whether the local user has joined the room. */ IsJoinedRole, /**< Whether the local user has joined the room. */
}; };
PublicRoomListModel(QObject *parent = nullptr); explicit PublicRoomListModel(QObject *parent = nullptr);
/** /**
* @brief Get the given role value at the given index. * @brief Get the given role value at the given index.

View File

@@ -172,7 +172,7 @@ public:
}; };
Q_ENUM(EventRoles) Q_ENUM(EventRoles)
PushRuleModel(QObject *parent = nullptr); explicit PushRuleModel(QObject *parent = nullptr);
[[nodiscard]] PushNotificationAction::Action defaultState() const; [[nodiscard]] PushNotificationAction::Action defaultState() const;
void setDefaultState(PushNotificationAction::Action defaultState); void setDefaultState(PushNotificationAction::Action defaultState);

View File

@@ -36,7 +36,7 @@ public:
HasLocalUser, /**< Whether the local user is in the list of authors. */ HasLocalUser, /**< Whether the local user is in the list of authors. */
}; };
ReactionModel(QObject *parent = nullptr, QList<Reaction> reactions = {}, NeoChatUser *localUser = nullptr); explicit ReactionModel(QObject *parent = nullptr, QList<Reaction> reactions = {}, NeoChatUser *localUser = nullptr);
/** /**
* @brief Get the given role value at the given index. * @brief Get the given role value at the given index.

View File

@@ -23,7 +23,7 @@ class NeoChatUser : public Quotient::User
*/ */
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
public: public:
NeoChatUser(QString userId, Quotient::Connection *connection); explicit NeoChatUser(QString userId, Quotient::Connection *connection);
public Q_SLOTS: public Q_SLOTS:
QColor color(); QColor color();