make space usage more tight in Coordinate->String conversion
This commit is contained in:
parent
07e245eb02
commit
8e89f80588
@ -295,10 +295,9 @@ double FixedPointCoordinate::ComputePerpendicularDistance(const FixedPointCoordi
|
|||||||
|
|
||||||
void FixedPointCoordinate::convertInternalLatLonToString(const int value, std::string &output)
|
void FixedPointCoordinate::convertInternalLatLonToString(const int value, std::string &output)
|
||||||
{
|
{
|
||||||
char buffer[100];
|
char buffer[12];
|
||||||
buffer[11] = 0; // zero termination
|
buffer[11] = 0; // zero termination
|
||||||
char *string = printInt<11, 6>(buffer, value);
|
output = printInt<11, 6>(buffer, value);
|
||||||
output = string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FixedPointCoordinate::convertInternalCoordinateToString(const FixedPointCoordinate &coord,
|
void FixedPointCoordinate::convertInternalCoordinateToString(const FixedPointCoordinate &coord,
|
||||||
|
Loading…
Reference in New Issue
Block a user