Add explicit
This commit is contained in:
@@ -34,14 +34,14 @@ class FavoriteWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FavoriteWidget(int tab_id, bool favorite = false, QWidget *parent = nullptr);
|
||||
explicit FavoriteWidget(int tab_id, bool favorite = false, QWidget *parent = nullptr);
|
||||
|
||||
// Change the value if different from the current one and then update display and emit FavoriteStateChanged signal
|
||||
void SetFavorite(bool favorite);
|
||||
|
||||
QSize sizeHint() const;
|
||||
|
||||
signals:
|
||||
signals:
|
||||
void FavoriteStateChanged(int, bool);
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user