[peripherals] fixed CPeripheral::operator ==(const PeripheralScanResult& right)
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 5 Mar 2013 10:37:55 +0000 (11:37 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 5 Mar 2013 10:40:33 +0000 (11:40 +0100)
xbmc/peripherals/devices/Peripheral.cpp

index b8bbdca..03bd167 100644 (file)
@@ -522,11 +522,7 @@ void CPeripheral::ClearSettings(void)
 
 bool CPeripheral::operator ==(const PeripheralScanResult& right) const
 {
-  return m_iVendorId  == right.m_iVendorId &&
-         m_iProductId == right.m_iProductId &&
-         m_type       == right.m_type &&
-         m_busType    == right.m_busType &&
-         m_strLocation.Equals(right.m_strLocation);
+  return m_strLocation.Equals(right.m_strLocation);
 }
 
 bool CPeripheral::operator !=(const PeripheralScanResult& right) const