Add missing explicit keyword
This commit is contained in:
@@ -26,7 +26,7 @@ class ThumbnailResponse : public QQuickImageResponse
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ThumbnailResponse(QString mediaId, QSize requestedSize);
|
||||
explicit ThumbnailResponse(QString mediaId, QSize requestedSize);
|
||||
~ThumbnailResponse() override = default;
|
||||
|
||||
private Q_SLOTS:
|
||||
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
};
|
||||
Q_ENUM(Roles)
|
||||
|
||||
CompletionModel(QObject *parent = nullptr);
|
||||
explicit CompletionModel(QObject *parent = nullptr);
|
||||
|
||||
/**
|
||||
* @brief Get the given role value at the given index.
|
||||
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
};
|
||||
Q_ENUM(Roles)
|
||||
|
||||
MediaMessageFilterModel(QObject *parent = nullptr);
|
||||
explicit MediaMessageFilterModel(QObject *parent = nullptr);
|
||||
|
||||
/**
|
||||
* @brief Custom filter to show only image and video messages.
|
||||
|
||||
@@ -16,7 +16,7 @@ class MessageFilterModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MessageFilterModel(QObject *parent = nullptr);
|
||||
explicit MessageFilterModel(QObject *parent = nullptr);
|
||||
|
||||
/**
|
||||
* @brief Custom filter function to remove hidden messages.
|
||||
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
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.
|
||||
|
||||
@@ -172,7 +172,7 @@ public:
|
||||
};
|
||||
Q_ENUM(EventRoles)
|
||||
|
||||
PushRuleModel(QObject *parent = nullptr);
|
||||
explicit PushRuleModel(QObject *parent = nullptr);
|
||||
|
||||
[[nodiscard]] PushNotificationAction::Action defaultState() const;
|
||||
void setDefaultState(PushNotificationAction::Action defaultState);
|
||||
|
||||
@@ -36,7 +36,7 @@ public:
|
||||
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.
|
||||
|
||||
@@ -23,7 +23,7 @@ class NeoChatUser : public Quotient::User
|
||||
*/
|
||||
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
|
||||
public:
|
||||
NeoChatUser(QString userId, Quotient::Connection *connection);
|
||||
explicit NeoChatUser(QString userId, Quotient::Connection *connection);
|
||||
|
||||
public Q_SLOTS:
|
||||
QColor color();
|
||||
|
||||
Reference in New Issue
Block a user