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>
This commit is contained in:
Berthold Stoeger 2020-02-20 12:12:23 +01:00 committed by Dirk Hohndel
parent b575a794ea
commit 2e52f43d94

View file

@ -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: