subsurface/mobile-widgets
Berthold Stoeger 04593e8ec4 Cleanup: fix printGPSCoords signature and leaks
The printGPSCoords() function returns a copied C-style string. Since
the owndership is transferred to the caller, the correct return type
is "char *" instead of "const char *".

Thus a number of casts when calling free can be removed.

Moreover a number of callers didn't free the string and thus were
leaking memory. Fix them. Ultimately we might want two versions
of the function: one for QString, one for C-style strings.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-03-24 21:57:13 -07:00
..
qml Mobile: only show dive computers in the Bluetooth connection list 2019-02-14 09:05:58 -08:00
qmlmanager.cpp Cleanup: fix printGPSCoords signature and leaks 2019-03-24 21:57:13 -07:00
qmlmanager.h Mobile: only show dive computers in the Bluetooth connection list 2019-02-14 09:05:58 -08:00
qmlprefs.cpp Mobile: set units system in "No cloud mode" 2018-09-19 14:41:11 -07:00
qmlprefs.h mobile-widgets: replace qmlprefs::theme with qPrefDisplay::theme 2018-09-12 20:18:32 -07:00