From: Vadim Zeitlin Date: Fri, 14 Sep 2007 17:04:27 +0000 (+0000) Subject: added WXDLLIMPEXP_BASE for a couple of template classes having only inline functions... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4ec4d8610acc3b62bdc59e5732bce57b63290e70?ds=inline added WXDLLIMPEXP_BASE for a couple of template classes having only inline functions as VC7 still needs them in DLL build if these classes are used as base classes or members of other DLL-exported classes (replaces first two parts of the patch 1779004) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/buffer.h b/include/wx/buffer.h index 3d7d6403f6..c4cb0dc208 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -25,7 +25,7 @@ class WXDLLIMPEXP_FWD_BASE wxCStrData; // ---------------------------------------------------------------------------- template -class wxCharTypeBuffer +class WXDLLIMPEXP_BASE wxCharTypeBuffer { public: typedef T CharType; @@ -150,7 +150,7 @@ private: bool m_owned; }; -class wxCharBuffer : public wxCharTypeBuffer +class WXDLLIMPEXP_BASE wxCharBuffer : public wxCharTypeBuffer { public: typedef wxCharTypeBuffer wxCharTypeBufferBase; @@ -165,7 +165,7 @@ public: }; #if wxUSE_WCHAR_T -class wxWCharBuffer : public wxCharTypeBuffer +class WXDLLIMPEXP_BASE wxWCharBuffer : public wxCharTypeBuffer { public: typedef wxCharTypeBuffer wxCharTypeBufferBase; @@ -284,7 +284,7 @@ private: }; -class wxMemoryBuffer +class WXDLLIMPEXP_BASE wxMemoryBuffer { public: // ctor and dtor diff --git a/include/wx/string.h b/include/wx/string.h index 8178d100d9..87bd52c54a 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -2766,7 +2766,7 @@ private: #endif // !wxUSE_STL_BASED_WXSTRING template -class wxStringTypeBufferBase +class WXDLLIMPEXP_BASE wxStringTypeBufferBase { public: typedef T CharType; @@ -2784,7 +2784,7 @@ protected: }; template -class wxStringTypeBufferLengthBase +class WXDLLIMPEXP_BASE wxStringTypeBufferLengthBase { public: typedef T CharType;