diff options
Diffstat (limited to 'core/connectionlistmodel.h')
-rw-r--r-- | core/connectionlistmodel.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/connectionlistmodel.h b/core/connectionlistmodel.h index d6ffe831c..d05b753c7 100644 --- a/core/connectionlistmodel.h +++ b/core/connectionlistmodel.h @@ -6,12 +6,12 @@ class ConnectionListModel : public QAbstractListModel { Q_OBJECT public: - ConnectionListModel(QObject *parent = 0); - QVariant data(const QModelIndex &index, int role) const; - int rowCount(const QModelIndex &parent = QModelIndex()) const; - void addAddress(const QString address); + ConnectionListModel(QObject *parent = nullptr); + QVariant data(const QModelIndex &index, int role) const override; + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + void addAddress(const QString &address); void removeAllAddresses(); - int indexOf(QString address); + int indexOf(const QString &address) const; private: QStringList m_addresses; }; |