summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-13 09:35:18 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-09-14 13:20:59 +0200
commitfeb11f6f5f8c22bec4e06b507e33c4169403d498 (patch)
treeadb20619ed73b3388ca5a2f69750afba4c83a72b /mobile-widgets/qmlmanager.h
parent0026aa395599489c09be3b7892b96923c670b7cf (diff)
downloadsubsurface-feb11f6f5f8c22bec4e06b507e33c4169403d498.tar.gz
Mobile: use value semantics for DiveObjectHelper in qmlmanager.cpp
Instead of creating a pointer-to-DiveObjectHelper in commitChanges, use a normal object. Thus, we don't have to think about ownership issues with respect to this object. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 12dbf6f8a..8984f9dc2 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -228,10 +228,10 @@ private:
qreal m_lastDevicePixelRatio;
QElapsedTimer timer;
bool alreadySaving;
- bool checkDate(DiveObjectHelper *myDive, struct dive * d, QString date);
- bool checkLocation(DiveObjectHelper *myDive, struct dive *d, QString location, QString gps);
- bool checkDuration(DiveObjectHelper *myDive, struct dive *d, QString duration);
- bool checkDepth(DiveObjectHelper *myDive, struct dive *d, QString depth);
+ bool checkDate(const DiveObjectHelper &myDive, struct dive *d, QString date);
+ bool checkLocation(const DiveObjectHelper &myDive, struct dive *d, QString location, QString gps);
+ bool checkDuration(const DiveObjectHelper &myDive, struct dive *d, QString duration);
+ bool checkDepth(const DiveObjectHelper &myDive, struct dive *d, QString depth);
bool currentGitLocalOnly;
Q_INVOKABLE DCDeviceData *m_device_data;
QString m_progressMessage;