mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Grantlee: generate vector of cylinder data on-demand
Instead of generating cylinder data in the form of CylinderObjectHelper objects for every DiveObjectHelper, generate it only if needed. DiveObjectHelper is used extensively in the mobile interface, which doesn't use the cylinder data. Let's not generate unnecessary CylinderObjectHelpers in this case! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f25fa2adc5
commit
e6cd4f8ae5
2 changed files with 7 additions and 9 deletions
|
|
@ -99,7 +99,6 @@ public:
|
|||
|
||||
private:
|
||||
struct dive *m_dive;
|
||||
QVector<CylinderObjectHelper> m_cyls;
|
||||
};
|
||||
Q_DECLARE_METATYPE(DiveObjectHelper *)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue