fixes #907, segfault when ampersands where missing
This commit is contained in:
parent
f14fac3f7d
commit
9378af1057
@ -45,7 +45,9 @@ struct RouteParameters {
|
|||||||
geometry(true),
|
geometry(true),
|
||||||
compression(true),
|
compression(true),
|
||||||
deprecatedAPI(false),
|
deprecatedAPI(false),
|
||||||
checkSum(-1) {}
|
checkSum(-1)
|
||||||
|
{ }
|
||||||
|
|
||||||
short zoomLevel;
|
short zoomLevel;
|
||||||
bool printInstructions;
|
bool printInstructions;
|
||||||
bool alternateRoute;
|
bool alternateRoute;
|
||||||
@ -95,8 +97,7 @@ struct RouteParameters {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void addHint(const std::string & s) {
|
void addHint(const std::string & s) {
|
||||||
hints.resize(coordinates.size());
|
hints.push_back(s);
|
||||||
hints.back() = s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void setLanguage(const std::string & s) {
|
void setLanguage(const std::string & s) {
|
||||||
|
Loading…
Reference in New Issue
Block a user