Changing string splitter function for better efficiency
This commit is contained in:
@@ -88,7 +88,7 @@ public:
|
||||
// }
|
||||
std::vector<std::string> textCoord;
|
||||
for(unsigned i = 0; i < routeParameters.viaPoints.size(); ++i) {
|
||||
textCoord = split (routeParameters.viaPoints[i], ',');
|
||||
stringSplit (routeParameters.viaPoints[i], ',', textCoord);
|
||||
if(textCoord.size() != 2) {
|
||||
reply = http::Reply::stockReply(http::Reply::badRequest);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user