From 2e52f43d9422e0ce8d9b52fb8556a5e312af3718 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 20 Feb 2020 12:12:23 +0100 Subject: 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 --- qt-models/divetripmodel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-models') 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: -- cgit v1.2.3-70-g09d2