From: Paul Cornett Date: Wed, 5 Jan 2011 18:38:33 +0000 (+0000) Subject: make wxMarkupEntities fully const X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f9405a952c188c634299c97899f71838d685e5ae make wxMarkupEntities fully const git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/private/stattext.h b/include/wx/private/stattext.h index 69ddc9081a..508587113b 100644 --- a/include/wx/private/stattext.h +++ b/include/wx/private/stattext.h @@ -37,6 +37,6 @@ enum // wxMarkupEntities[wxMARKUP_ELEMENT_NAME][wxMARKUP_ENTITY_GT] == ">" // wxMarkupEntities[wxMARKUP_ELEMENT_VALUE][wxMARKUP_ENTITY_GT] == ">" // -extern const wxChar *wxMarkupEntities[wxMARKUP_ELEMENT_MAX][wxMARKUP_ENTITY_MAX]; +extern const wxChar *const wxMarkupEntities[wxMARKUP_ELEMENT_MAX][wxMARKUP_ENTITY_MAX]; #endif // _WX_PRIVATE_STATTEXT_H_ diff --git a/src/common/stattextcmn.cpp b/src/common/stattextcmn.cpp index 2da27afef7..3c485e058c 100644 --- a/src/common/stattextcmn.cpp +++ b/src/common/stattextcmn.cpp @@ -26,7 +26,7 @@ #include "wx/private/stattext.h" -const wxChar *wxMarkupEntities[][wxMARKUP_ENTITY_MAX] = +const wxChar *const wxMarkupEntities[][wxMARKUP_ENTITY_MAX] = { // the entities handled by SetLabel() when wxST_MARKUP is used and their referenced string