From 66d2fa18eeef93c1ea4bffe704dac54531ef064c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 6 Feb 2005 23:21:59 +0000 Subject: [PATCH] blind fix for XTI compilation after last change git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/object.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/common/object.cpp b/src/common/object.cpp index 605eb33b43..e7692e7384 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -81,11 +81,21 @@ wxClassInfo wxObject::ms_classInfo( wxT("wxObject"), 0, 0, wxClassInfo* wxClassInfo::sm_first = NULL; wxHashTable* wxClassInfo::sm_classTable = NULL; +// when using XTI, this method is already implemented inline inside +// DECLARE_DYNAMIC_CLASS but otherwise we intentionally make this function +// non-inline because this allows us to have a non-inline virtual function in +// all wx classes and this solves linking problems for HP-UX native toolchain +// and possibly others (we could make dtor non-inline as well but it's more +// useful to keep it inline than this function) +#if !wxUSE_EXTENDED_RTTI + wxClassInfo *wxObject::GetClassInfo() const { return &wxObject::ms_classInfo; } +#endif // wxUSE_EXTENDED_RTTI + // These are here so we can avoid 'always true/false' warnings // by referring to these instead of true/false const bool wxTrue = true; -- 2.45.2