Change some explicit usage
This commit is contained in:
@@ -41,7 +41,7 @@ class About : public QDialog {
|
||||
|
||||
private:
|
||||
struct Person {
|
||||
Person(const QString &n, const QString &e = QString()) : name(n), email(e) {}
|
||||
explicit Person(const QString &n, const QString &e = QString()) : name(n), email(e) {}
|
||||
bool operator<(const Person &other) const { return name < other.name; }
|
||||
QString name;
|
||||
QString email;
|
||||
|
||||
@@ -31,7 +31,7 @@ class AddStreamDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
AddStreamDialog(QWidget *parent = nullptr);
|
||||
explicit AddStreamDialog(QWidget *parent = nullptr);
|
||||
~AddStreamDialog() override;
|
||||
|
||||
QUrl url() const { return QUrl(ui_->url->text()); }
|
||||
|
||||
@@ -83,7 +83,7 @@ class EditTagDialog : public QDialog {
|
||||
|
||||
private:
|
||||
struct Data {
|
||||
Data(const Song &song = Song()) : original_(song), current_(song) {}
|
||||
explicit Data(const Song &song = Song()) : original_(song), current_(song) {}
|
||||
|
||||
static QVariant value(const Song &song, const QString &id);
|
||||
QVariant original_value(const QString &id) const {
|
||||
@@ -127,7 +127,7 @@ class EditTagDialog : public QDialog {
|
||||
|
||||
private:
|
||||
struct FieldData {
|
||||
FieldData(QLabel *label = nullptr, QWidget *editor = nullptr, const QString &id = QString())
|
||||
explicit FieldData(QLabel *label = nullptr, QWidget *editor = nullptr, const QString &id = QString())
|
||||
: label_(label), editor_(editor), id_(id) {}
|
||||
|
||||
QLabel *label_;
|
||||
|
||||
Reference in New Issue
Block a user