X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c50f1fb9226d9260454ccb9c8a67d0be23c2827f..b068c4e8a1f4919360329c345eae36ff95ab5a10:/include/wx/msw/accel.h diff --git a/include/wx/msw/accel.h b/include/wx/msw/accel.h index d985b652ff..d035b0aac4 100644 --- a/include/wx/msw/accel.h +++ b/include/wx/msw/accel.h @@ -76,18 +76,14 @@ public: wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array // Copy constructors - wxAcceleratorTable(const wxAcceleratorTable& accel) - { Ref(accel); } + inline wxAcceleratorTable(const wxAcceleratorTable& accel) { Ref(accel); } + inline wxAcceleratorTable(const wxAcceleratorTable* accel) { if (accel) Ref(*accel); } ~wxAcceleratorTable(); - wxAcceleratorTable& operator = (const wxAcceleratorTable& accel) - { if ( *this != accel ) Ref(accel); return *this; } - - bool operator == (const wxAcceleratorTable& accel) const - { return m_refData == accel.m_refData; } - bool operator != (const wxAcceleratorTable& accel) const - { return m_refData != accel.m_refData; } + inline wxAcceleratorTable& operator = (const wxAcceleratorTable& accel) { if ( *this != accel ) Ref(accel); return *this; } + inline bool operator == (const wxAcceleratorTable& accel) const { return m_refData == accel.m_refData; } + inline bool operator != (const wxAcceleratorTable& accel) const { return m_refData != accel.m_refData; } bool Ok() const; void SetHACCEL(WXHACCEL hAccel);