X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..6ea48c514e0b911113020c76fdb83b64f5941ddb:/include/wx/generic/accel.h diff --git a/include/wx/generic/accel.h b/include/wx/generic/accel.h index f69636a5b5..17f7e44fa4 100644 --- a/include/wx/generic/accel.h +++ b/include/wx/generic/accel.h @@ -23,12 +23,6 @@ public: wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); virtual ~wxAcceleratorTable(); - wxAcceleratorTable(const wxAcceleratorTable& accel) - : wxObject() - { Ref(accel); } - wxAcceleratorTable& operator=(const wxAcceleratorTable& accel) - { if ( m_refData != accel.m_refData ) Ref(accel); return *this; } - #if WXWIN_COMPATIBILITY_2_4 bool operator==(const wxAcceleratorTable& accel) const { return m_refData == accel.m_refData; } @@ -36,7 +30,8 @@ public: { return !(*this == accel); } #endif - bool Ok() const; + bool Ok() const { return IsOk(); } + bool IsOk() const; void Add(const wxAcceleratorEntry& entry); void Remove(const wxAcceleratorEntry& entry);