diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-20 12:12:23 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-07 12:04:19 -0800 |
commit | 2e52f43d9422e0ce8d9b52fb8556a5e312af3718 (patch) | |
tree | a8102b71167d3d6800ffb6586344d062d8682f8c /qt-models/divetripmodel.h | |
parent | b575a794ea7681a3593494d37794ceb652679e0a (diff) | |
download | subsurface-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.h | 4 |
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: |