/// Remove support for this pid:
PropertyList list = src->supported();
- list.remove(reply->property);
+ removeOne(&list, reply->property);
src->setSupported(list);
}
else
}
else
{
- if(!ListPlusPlus<VehicleProperty::Property>(&m_supportedProperties).contains(property))
+ if(!contains(m_supportedProperties, property))
{
DebugOut(0)<<"obd plugin does not support: "<<property<<endl;
return;
void OBD2Source::unsubscribeToPropertyChanges(VehicleProperty::Property property)
{
- if(!ListPlusPlus<VehicleProperty::Property>(&m_supportedProperties).contains(property))
+ if(!contains(m_supportedProperties, property))
{
DebugOut(0)<<"obd plugin does not support: "<<property<<endl;
return;
VehicleProperty::Property property = reply->property;
- if(!ListPlusPlus<VehicleProperty::Property>(&m_supportedProperties).contains(property))
+ if(!contains(m_supportedProperties, property))
{
DebugOut(0)<<"obd plugin does not support: "<<property<<endl;
return;