Add _PTR WX_DECLARE_HASH_SET variants to fix warnings about operator->().
Macros from WX_DECLARE_HASH_SET family could declare an operator->() which could never be called because it returned a pointer to a non-object (e.g. a pointer or a primitive type). Fix this in the same way as for WX_DECLARE_ARRAY macros by adding (badly but consistently) named _PTR variants of the macros to allow defining the versions without operator->(). This fixes tons of warnings when building wx with Sun CC. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,10 +28,10 @@ class WXDLLIMPEXP_FWD_HTML wxHtmlEntitiesParser;
|
||||
class wxHtmlTextPieces;
|
||||
class wxHtmlParserState;
|
||||
|
||||
WX_DECLARE_HASH_SET_WITH_DECL(wxHtmlTagHandler*,
|
||||
wxPointerHash, wxPointerEqual,
|
||||
wxHtmlTagHandlersSet,
|
||||
class WXDLLIMPEXP_HTML);
|
||||
WX_DECLARE_HASH_SET_WITH_DECL_PTR(wxHtmlTagHandler*,
|
||||
wxPointerHash, wxPointerEqual,
|
||||
wxHtmlTagHandlersSet,
|
||||
class WXDLLIMPEXP_HTML);
|
||||
WX_DECLARE_STRING_HASH_MAP_WITH_DECL(wxHtmlTagHandler*,
|
||||
wxHtmlTagHandlersHash,
|
||||
class WXDLLIMPEXP_HTML);
|
||||
|
Reference in New Issue
Block a user