mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
b575a794ea
commit
2e52f43d94
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue