diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-08-18 12:53:48 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-23 05:21:08 -0700 |
commit | ecb64d7e3e3c6c875defc9dc4aab01c65ccddf8a (patch) | |
tree | 58a9142c79a10bca2935f0a29fa63c8b9e565711 /mobile-widgets/qmlmanager.cpp | |
parent | 62672276d0457e8890aed57e4ca114e9daac16f2 (diff) | |
download | subsurface-ecb64d7e3e3c6c875defc9dc4aab01c65ccddf8a.tar.gz |
Cleanup: user properly typed pointers
A trivial cleanup: replace void by properly typed pointers in
cylinder_none() and weightsystem_none(). Moreover, remove the
unused function no_weightsystems().
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index b3bef89f2..093f30eae 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -1040,7 +1040,7 @@ void QMLManager::commitChanges(QString diveId, QString date, QString location, Q } // not sure what we'd do if there was more than one weight system // defined - for now just ignore that case - if (weightsystem_none((void *)&d->weightsystem[1])) { + if (weightsystem_none(&d->weightsystem[1])) { if (myDive->sumWeight() != weight) { diveChanged = true; d->weightsystem[0].weight.grams = parseWeightToGrams(weight); |