From cef01f5dbc84898e21bed9f24adae7f5d1eea2e3 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 12 Dec 2013 18:31:08 -0500 Subject: [PATCH] remove superflous blank padding --- DataStructures/Coordinate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStructures/Coordinate.h b/DataStructures/Coordinate.h index 6747616db..04380f1ec 100644 --- a/DataStructures/Coordinate.h +++ b/DataStructures/Coordinate.h @@ -132,21 +132,21 @@ static inline void convertInternalLatLonToString(const int value, std::string & static inline void convertInternalCoordinateToString(const FixedPointCoordinate & coord, std::string & output) { std::string tmp; + tmp.reserve(23); convertInternalLatLonToString(coord.lon, tmp); output = tmp; output += ","; convertInternalLatLonToString(coord.lat, tmp); output += tmp; - output += " "; } static inline void convertInternalReversedCoordinateToString(const FixedPointCoordinate & coord, std::string & output) { std::string tmp; + tmp.reserve(23); convertInternalLatLonToString(coord.lat, tmp); output = tmp; output += ","; convertInternalLatLonToString(coord.lon, tmp); output += tmp; - output += " "; }