Commit 0893f62e authored by Volker Krause's avatar Volker Krause
Browse files

Handle carpool location type to silence missing case warnings

parent f005117b
......@@ -362,6 +362,7 @@ Location Location::merge(const Location &lhs, const Location &rhs)
switch (l.type()) {
case Place:
case CarpoolPickupDropoff:
case Stop:
break;
case RentedVehicleStation:
......@@ -419,6 +420,7 @@ QJsonObject Location::toJson(const Location &loc)
obj.remove(QLatin1String("type"));
[[fallthrough]];
case Stop:
case CarpoolPickupDropoff:
break;
case RentedVehicleStation:
obj.insert(QStringLiteral("rentalVehicleStation"), RentalVehicleStation::toJson(loc.rentalVehicleStation()));
......@@ -455,6 +457,7 @@ Location Location::fromJson(const QJsonObject &obj)
switch (loc.type()) {
case Place:
case Stop:
case CarpoolPickupDropoff:
break;
case RentedVehicleStation:
loc.setData(RentalVehicleStation::fromJson(obj.value(QLatin1String("rentalVehicleStation")).toObject()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment