@@ -347,19 +347,19 @@ namespace BinaryNinja {
347347
348348 bool operator!() const { return m_obj == nullptr; }
349349
350- bool operator==(const T* obj) const { return T::GetObject(m_obj) == T::GetObject(obj); }
350+ bool operator==(T* obj) const { return T::GetObject(m_obj) == T::GetObject(obj); }
351351
352352 bool operator==(const Ref<T>& obj) const { return T::GetObject(m_obj) == T::GetObject(obj.m_obj); }
353353
354- bool operator!=(const T* obj) const { return T::GetObject(m_obj) != T::GetObject(obj); }
354+ bool operator!=(T* obj) const { return T::GetObject(m_obj) != T::GetObject(obj); }
355355
356356 bool operator!=(const Ref<T>& obj) const { return T::GetObject(m_obj) != T::GetObject(obj.m_obj); }
357357
358- bool operator<(const T* obj) const { return T::GetObject(m_obj) < T::GetObject(obj); }
358+ bool operator<(T* obj) const { return T::GetObject(m_obj) < T::GetObject(obj); }
359359
360360 bool operator<(const Ref<T>& obj) const { return T::GetObject(m_obj) < T::GetObject(obj.m_obj); }
361361
362- bool operator>(const T* obj) const { return T::GetObject(m_obj) > T::GetObject(obj); }
362+ bool operator>(T* obj) const { return T::GetObject(m_obj) > T::GetObject(obj); }
363363
364364 bool operator>(const Ref<T>& obj) const { return T::GetObject(m_obj) > T::GetObject(obj.m_obj); }
365365
@@ -369,19 +369,19 @@ namespace BinaryNinja {
369369 template <class T>
370370 bool operator==(T* a, const Ref<T>& b)
371371 {
372- return a == b.GetPtr();
372+ return T::GetObject(a) == T::GetObject( b.GetPtr() );
373373 }
374374
375375 template <class T>
376376 bool operator!=(T* a, const Ref<T>& b)
377377 {
378- return a != b.GetPtr();
378+ return T::GetObject(a) != T::GetObject( b.GetPtr() );
379379 }
380380
381381 template <class T>
382382 bool operator<(T* a, const Ref<T>& b)
383383 {
384- return a < b.GetPtr();
384+ return T::GetObject(a) < T::GetObject( b.GetPtr() );
385385 }
386386
387387 /*!
@@ -398,31 +398,31 @@ namespace BinaryNinja {
398398 operator T*() const { return m_obj; }
399399 T* operator->() const { return m_obj; }
400400 T& operator*() const { return *m_obj; }
401- bool operator==(const T* obj) const { return T::GetObject(m_obj) == T::GetObject(obj); }
401+ bool operator==(T* obj) const { return T::GetObject(m_obj) == T::GetObject(obj); }
402402 bool operator==(const Ref<T>& obj) const { return T::GetObject(m_obj) == T::GetObject(obj.m_obj); }
403- bool operator!=(const T* obj) const { return T::GetObject(m_obj) != T::GetObject(obj); }
403+ bool operator!=(T* obj) const { return T::GetObject(m_obj) != T::GetObject(obj); }
404404 bool operator!=(const Ref<T>& obj) const { return T::GetObject(m_obj) != T::GetObject(obj.m_obj); }
405- bool operator<(const T* obj) const { return T::GetObject(m_obj) < T::GetObject(obj); }
405+ bool operator<(T* obj) const { return T::GetObject(m_obj) < T::GetObject(obj); }
406406 bool operator<(const Ref<T>& obj) const { return T::GetObject(m_obj) < T::GetObject(obj.m_obj); }
407407 T* GetPtr() const { return m_obj; }
408408 };
409409
410410 template <class T>
411411 bool operator==(T* a, const CallbackRef<T>& b)
412412 {
413- return a == b.GetPtr();
413+ return T::GetObject(a) == T::GetObjcet( b.GetPtr() );
414414 }
415415
416416 template <class T>
417417 bool operator!=(T* a, const CallbackRef<T>& b)
418418 {
419- return a != b.GetPtr();
419+ return T::GetObject(a) != T::GetObject( b.GetPtr() );
420420 }
421421
422422 template <class T>
423423 bool operator<(T* a, const CallbackRef<T>& b)
424424 {
425- return a < b.GetPtr();
425+ return T::GetObject(a) < T::GetObject( b.GetPtr() );
426426 }
427427
428428 /*!
0 commit comments