core: port printGPSCoordsC to return std::string

Less memory management hassle.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-02-29 13:53:17 +01:00 committed by Michael Keller
parent 119fe908c7
commit 2f3d8d83f5
4 changed files with 7 additions and 9 deletions

View file

@ -115,9 +115,9 @@ QString printGPSCoords(const location_t *location)
return result;
}
extern "C" char *printGPSCoordsC(const location_t *location)
std::string printGPSCoordsC(const location_t *location)
{
return copy_qstring(printGPSCoords(location));
return printGPSCoords(location).toStdString();
}
/**