X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e79262f789e5fbc41f2eae43311588cf0a72be3..c23b255ab4b2867efbaf4721311c4c8265dd6098:/include/wx/buffer.h diff --git a/include/wx/buffer.h b/include/wx/buffer.h index 136f6eeb19..4cc340aa51 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -88,7 +88,7 @@ public: { wxCharTypeBuffer buf; if ( str ) - buf.m_data = new Data(wx_const_cast(CharType*, str), Data::NonOwned); + buf.m_data = new Data(const_cast(str), Data::NonOwned); return buf; } @@ -110,7 +110,7 @@ public: CharType * const p = m_data->Get(); - wxCharTypeBuffer *self = wx_const_cast(wxCharTypeBuffer*, this); + wxCharTypeBuffer *self = const_cast(this); self->m_data->Set(NULL); self->DecRef(); @@ -179,10 +179,10 @@ public: private: // reference-counted data - struct Data : wxPrivate::UntypedBufferData + struct Data : public wxPrivate::UntypedBufferData { Data(CharType *str, Kind kind = Owned) - : UntypedBufferData(str, kind) + : wxPrivate::UntypedBufferData(str, kind) { }