summaryrefslogtreecommitdiffstats
path: root/qt-models/divetripmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-20 12:12:23 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-07 12:04:19 -0800
commit2e52f43d9422e0ce8d9b52fb8556a5e312af3718 (patch)
treea8102b71167d3d6800ffb6586344d062d8682f8c /qt-models/divetripmodel.h
parentb575a794ea7681a3593494d37794ceb652679e0a (diff)
downloadsubsurface-2e52f43d9422e0ce8d9b52fb8556a5e312af3718.tar.gz
divetripmodel: mark derived classes as final
This is an idle "optimization": The compiler may now not need to access the vtable when calling virtual functions. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r--qt-models/divetripmodel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h
index 132357b33..a8688baa1 100644
--- a/qt-models/divetripmodel.h
+++ b/qt-models/divetripmodel.h
@@ -101,7 +101,7 @@ protected:
virtual QModelIndex diveToIdx(const dive *d) const = 0;
};
-class DiveTripModelTree : public DiveTripModelBase
+class DiveTripModelTree final : public DiveTripModelBase
{
Q_OBJECT
public slots:
@@ -176,7 +176,7 @@ private:
static bool dive_before_entry(const dive *d, const Item &entry);
};
-class DiveTripModelList : public DiveTripModelBase
+class DiveTripModelList final : public DiveTripModelBase
{
Q_OBJECT
public slots: