From e6cd4f8ae5d8b0bbc8e517b88d4ddc6045657227 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 12 Aug 2019 18:43:21 +0200 Subject: 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 --- core/subsurface-qt/DiveObjectHelper.h | 1 - 1 file changed, 1 deletion(-) (limited to 'core/subsurface-qt/DiveObjectHelper.h') 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 m_cyls; }; Q_DECLARE_METATYPE(DiveObjectHelper *) -- cgit v1.2.3-70-g09d2