summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/locationinformation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/locationinformation.cpp')
-rw-r--r--desktop-widgets/locationinformation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp
index 7356f8370..f4da411af 100644
--- a/desktop-widgets/locationinformation.cpp
+++ b/desktop-widgets/locationinformation.cpp
@@ -114,9 +114,9 @@ void LocationInformationWidget::updateLabels()
else
ui.diveSiteNotes->clear();
if (has_location(&diveSite->location)) {
- const char *coords = printGPSCoords(&diveSite->location);
+ char *coords = printGPSCoords(&diveSite->location);
ui.diveSiteCoordinates->setText(coords);
- free((void *)coords);
+ free(coords);
} else {
ui.diveSiteCoordinates->clear();
}
@@ -138,10 +138,10 @@ void LocationInformationWidget::updateGpsCoordinates(const location_t &location)
{
QString oldText = ui.diveSiteCoordinates->text();
- const char *coords = printGPSCoords(&location);
+ char *coords = printGPSCoords(&location);
ui.diveSiteCoordinates->setText(coords);
enableLocationButtons(has_location(&location));
- free((void *)coords);
+ free(coords);
if (oldText != ui.diveSiteCoordinates->text())
markChangedWidget(ui.diveSiteCoordinates);
}