diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-08-12 18:43:21 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-08-22 10:13:40 -0700 |
commit | e6cd4f8ae5d8b0bbc8e517b88d4ddc6045657227 (patch) | |
tree | 184d25a97a284127803f6e2792b8b5a3a4280014 /core/subsurface-qt/DiveObjectHelper.h | |
parent | f25fa2adc5dd37aca17335d8278fd00e39e9b733 (diff) | |
download | subsurface-e6cd4f8ae5d8b0bbc8e517b88d4ddc6045657227.tar.gz |
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>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.h')
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h index a090811de..49eb1d8a6 100644 --- a/core/subsurface-qt/DiveObjectHelper.h +++ b/core/subsurface-qt/DiveObjectHelper.h @@ -99,7 +99,6 @@ public: private: struct dive *m_dive; - QVector<CylinderObjectHelper> m_cyls; }; Q_DECLARE_METATYPE(DiveObjectHelper *) |