for(int i=0; i < supportedStr.size(); i++)
{
- if(!ListPlusPlus<VehicleProperty::Property>(&mSupported).contains(supportedStr[i][0]))
+ if(!contains(mSupported, supportedStr[i][0]))
mSupported.push_back(supportedStr[i][0]);
}
if(!shared)
return;
- if(!ListPlusPlus<VehicleProperty::Property>(&mSupported).contains(property))
+ if(!contains(mSupported, property))
{
mSupported.push_back(property);
routingEngine->updateSupported(mSupported, PropertyList(), this);
bool MurphySource::hasProperty(string propertyName)
{
PropertyList props = supported();
- return ListPlusPlus<VehicleProperty::Property>(&props).contains(propertyName);
+ return contains(props,propertyName);
}
static void recvfrom_msg(mrp_transport_t *transp, mrp_msg_t *msg,