summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2018-07-19 16:46:29 (GMT)
committerKevin Smith <git@kismith.co.uk>2018-07-19 16:46:29 (GMT)
commitcc4bdf756f3e9f9451231d59d2b5dcacd1af6d1e (patch)
tree7488a2994245766d6cc085373b33978e8f523ddc /Swift
parent0011a649c6bf997dd3a5cf7fabe3c9733fc573f9 (diff)
downloadswift-cc4bdf756f3e9f9451231d59d2b5dcacd1af6d1e.zip
swift-cc4bdf756f3e9f9451231d59d2b5dcacd1af6d1e.tar.bz2
Fix compiler warnings
Test-Information: Compiles now, didn't before (mac allow_warnings=0). Change-Id: I6bff608d8c308e933e8582242a3c9d55858981ce
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/ServerList/ServerListDelegate.h2
-rw-r--r--Swift/QtUI/ServerList/ServerListModel.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/ServerList/ServerListDelegate.h b/Swift/QtUI/ServerList/ServerListDelegate.h
index 79afc37..3f8b72b 100644
--- a/Swift/QtUI/ServerList/ServerListDelegate.h
+++ b/Swift/QtUI/ServerList/ServerListDelegate.h
@@ -17,7 +17,7 @@ namespace Swift {
class ServerListDelegate : public QStyledItemDelegate {
public:
ServerListDelegate();
- ~ServerListDelegate();
+ ~ServerListDelegate() override;
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
private:
diff --git a/Swift/QtUI/ServerList/ServerListModel.h b/Swift/QtUI/ServerList/ServerListModel.h
index 86541a0..ae89ade 100644
--- a/Swift/QtUI/ServerList/ServerListModel.h
+++ b/Swift/QtUI/ServerList/ServerListModel.h
@@ -68,7 +68,7 @@ namespace Swift {
Q_OBJECT
public:
ServerListModel();
- ~ServerListModel();
+ ~ServerListModel() override;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override;