mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
62672276d0
commit
ecb64d7e3e
3 changed files with 6 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue