From c155b9b519b54aa5410930bcdc5c6478ebda1251 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 27 Oct 2011 21:10:51 +0000 Subject: [PATCH] Use WX_XXX_ARRAY_PTR macro variants for arrays of pointers. Arrays of pointers must not overload operator->() as it is not used with them and is, in fact, unusable, provoking a warning from Sun CC every time such array is declared. Use the special _PTR-suffixed versions to avoid this. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/ribbon/buttonbar.h | 4 ++-- include/wx/ribbon/control.h | 2 +- include/wx/ribbon/gallery.h | 2 +- include/wx/ribbon/toolbar.h | 2 +- src/ribbon/toolbar.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/wx/ribbon/buttonbar.h b/include/wx/ribbon/buttonbar.h index 9d7da82f3f..70985121ea 100644 --- a/include/wx/ribbon/buttonbar.h +++ b/include/wx/ribbon/buttonbar.h @@ -23,8 +23,8 @@ class wxRibbonButtonBarButtonBase; class wxRibbonButtonBarLayout; class wxRibbonButtonBarButtonInstance; -WX_DEFINE_USER_EXPORTED_ARRAY(wxRibbonButtonBarLayout*, wxArrayRibbonButtonBarLayout, class WXDLLIMPEXP_RIBBON); -WX_DEFINE_USER_EXPORTED_ARRAY(wxRibbonButtonBarButtonBase*, wxArrayRibbonButtonBarButtonBase, class WXDLLIMPEXP_RIBBON); +WX_DEFINE_USER_EXPORTED_ARRAY_PTR(wxRibbonButtonBarLayout*, wxArrayRibbonButtonBarLayout, class WXDLLIMPEXP_RIBBON); +WX_DEFINE_USER_EXPORTED_ARRAY_PTR(wxRibbonButtonBarButtonBase*, wxArrayRibbonButtonBarButtonBase, class WXDLLIMPEXP_RIBBON); class WXDLLIMPEXP_RIBBON wxRibbonButtonBar : public wxRibbonControl { diff --git a/include/wx/ribbon/control.h b/include/wx/ribbon/control.h index 7edb02d2f2..35cfd5777c 100644 --- a/include/wx/ribbon/control.h +++ b/include/wx/ribbon/control.h @@ -71,7 +71,7 @@ private: #endif }; -WX_DEFINE_USER_EXPORTED_ARRAY(wxRibbonControl*, wxArrayRibbonControl, class WXDLLIMPEXP_RIBBON); +WX_DEFINE_USER_EXPORTED_ARRAY_PTR(wxRibbonControl*, wxArrayRibbonControl, class WXDLLIMPEXP_RIBBON); #endif // wxUSE_RIBBON diff --git a/include/wx/ribbon/gallery.h b/include/wx/ribbon/gallery.h index 01d89841e5..5e59de37a4 100644 --- a/include/wx/ribbon/gallery.h +++ b/include/wx/ribbon/gallery.h @@ -20,7 +20,7 @@ class wxRibbonGalleryItem; -WX_DEFINE_USER_EXPORTED_ARRAY(wxRibbonGalleryItem*, wxArrayRibbonGalleryItem, class WXDLLIMPEXP_RIBBON); +WX_DEFINE_USER_EXPORTED_ARRAY_PTR(wxRibbonGalleryItem*, wxArrayRibbonGalleryItem, class WXDLLIMPEXP_RIBBON); class WXDLLIMPEXP_RIBBON wxRibbonGallery : public wxRibbonControl { diff --git a/include/wx/ribbon/toolbar.h b/include/wx/ribbon/toolbar.h index eda16e4b3f..f15995e93d 100644 --- a/include/wx/ribbon/toolbar.h +++ b/include/wx/ribbon/toolbar.h @@ -20,7 +20,7 @@ class wxRibbonToolBarToolBase; class wxRibbonToolBarToolGroup; -WX_DEFINE_USER_EXPORTED_ARRAY(wxRibbonToolBarToolGroup*, wxArrayRibbonToolBarToolGroup, class WXDLLIMPEXP_RIBBON); +WX_DEFINE_USER_EXPORTED_ARRAY_PTR(wxRibbonToolBarToolGroup*, wxArrayRibbonToolBarToolGroup, class WXDLLIMPEXP_RIBBON); enum wxRibbonToolBarToolState { diff --git a/src/ribbon/toolbar.cpp b/src/ribbon/toolbar.cpp index cd4817e0a2..5715d6e1bc 100644 --- a/src/ribbon/toolbar.cpp +++ b/src/ribbon/toolbar.cpp @@ -44,7 +44,7 @@ public: long state; }; -WX_DEFINE_ARRAY(wxRibbonToolBarToolBase*, wxArrayRibbonToolBarToolBase); +WX_DEFINE_ARRAY_PTR(wxRibbonToolBarToolBase*, wxArrayRibbonToolBarToolBase); class wxRibbonToolBarToolGroup { -- 2.45.2