diff --git a/libnymea-core/hardware/network/networkdevicemonitorimpl.cpp b/libnymea-core/hardware/network/networkdevicemonitorimpl.cpp index f15c208d..0f9bf773 100644 --- a/libnymea-core/hardware/network/networkdevicemonitorimpl.cpp +++ b/libnymea-core/hardware/network/networkdevicemonitorimpl.cpp @@ -176,12 +176,14 @@ bool NetworkDeviceMonitorImpl::isMyNetworkDeviceInfo(const NetworkDeviceInfo &ne return myNetworkDevice; } -bool NetworkDeviceMonitorImpl::operator==(NetworkDeviceMonitorImpl *other) const +bool NetworkDeviceMonitorImpl::operator==(const NetworkDeviceMonitorImpl &other) const { - return m_macAddress == other->macAddress() && m_hostName == other->hostName() && m_address == other->address(); + return m_macAddress == other.macAddress() + && m_hostName == other.hostName() + && m_address == other.address(); } -bool NetworkDeviceMonitorImpl::operator!=(NetworkDeviceMonitorImpl *other) const +bool NetworkDeviceMonitorImpl::operator!=(const NetworkDeviceMonitorImpl &other) const { return !operator==(other); } diff --git a/libnymea-core/hardware/network/networkdevicemonitorimpl.h b/libnymea-core/hardware/network/networkdevicemonitorimpl.h index 6858bd0d..448751b9 100644 --- a/libnymea-core/hardware/network/networkdevicemonitorimpl.h +++ b/libnymea-core/hardware/network/networkdevicemonitorimpl.h @@ -75,8 +75,8 @@ public: bool isMyNetworkDeviceInfo(const NetworkDeviceInfo &networkDeviceInfo) const; - bool operator==(NetworkDeviceMonitorImpl *other) const; - bool operator!=(NetworkDeviceMonitorImpl *other) const; + bool operator==(const NetworkDeviceMonitorImpl &other) const; + bool operator!=(const NetworkDeviceMonitorImpl &other) const; private: MacAddress m_macAddress;