This allows to remove WXDLLIMPEXP_BASE from the class declaration and should
hopefully fix VC6 linking errors when building the unit test.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61981
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// As standard, wxAny can store value of almost any type, in a fairly
// optimal manner even.
//
-class WXDLLIMPEXP_BASE wxAny
+class wxAny
{
public:
/**
private:
// Assignment functions
- void AssignAny(const wxAny &any);
+ void AssignAny(const wxAny& any)
+ {
+ if ( !any.m_type->IsSameType(m_type) )
+ {
+ m_type->DeleteValue(m_buffer);
+ m_type = any.m_type;
+ }
+ m_type->CopyBuffer(any.m_buffer, m_buffer);
+ }
template<typename T>
void Assign(const T &value)
g_wxAnyValueTypeGlobals->RegisterValueType(this);
}
-//-------------------------------------------------------------------------
-// wxAny
-//-------------------------------------------------------------------------
-
-void wxAny::AssignAny(const wxAny &any)
-{
- if ( !any.m_type->IsSameType(m_type) )
- {
- m_type->DeleteValue(m_buffer);
- m_type = any.m_type;
- }
- m_type->CopyBuffer(any.m_buffer, m_buffer);
-}
-
//-------------------------------------------------------------------------
// Dynamic conversion member functions
//-------------------------------------------------------------------------