X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e124582c4503cea32915642d97a0476f8d81cc4..515a31bf6503ba2e66be621019c8b92fa31d48a3:/include/wx/object.h diff --git a/include/wx/object.h b/include/wx/object.h index b7de67c0fe..f9d9f2be9b 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -476,9 +476,8 @@ public: // Make sure this object has only one reference void UnShare() { AllocExclusive(); } - // Do a shallow comparison of our referenced data with the given object's - // refdata - bool IsRefTo(const wxObject *p) const { return m_refData == p->m_refData; } + // check if this object references the same data as the other one + bool IsSameAs(const wxObject& o) const { return m_refData == o.m_refData; } protected: // ensure that our data is not shared with anybody else: if we have no