aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--launcher/QObjectPtr.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/launcher/QObjectPtr.h b/launcher/QObjectPtr.h
index 57974939..173dc5e7 100644
--- a/launcher/QObjectPtr.h
+++ b/launcher/QObjectPtr.h
@@ -77,10 +77,12 @@ public:
{
return m_ptr;
}
- bool operator==(const shared_qobject_ptr<T>& other) {
+ template<typename U>
+ bool operator==(const shared_qobject_ptr<U>& other) const {
return m_ptr == other.m_ptr;
}
- bool operator!=(const shared_qobject_ptr<T>& other) {
+ template<typename U>
+ bool operator!=(const shared_qobject_ptr<U>& other) const {
return m_ptr != other.m_ptr;
}