mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
68ddce5b11
commit
3e60f6c390
4 changed files with 7 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue