fix DLL build with MSVC: it wasn't happy that some functions of a template class were not implemented, so get rid of FromCStrData() and implement its logic in one of the 2 derived classes ctors instead

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-03-23 00:04:15 +00:00
parent d18c8d3d94
commit ccd4deab6b
2 changed files with 21 additions and 20 deletions

View File

@@ -2045,10 +2045,9 @@ inline wxString& wxString::operator=(const wxCStrData& cstr)
// ----------------------------------------------------------------------------
// FIXME-UTF8: move this to buffer.h; provide versions for both variants
template<>
inline void wxCharTypeBuffer<wxChar>::FromCStrData(const wxCStrData& cstr)
inline wxWxCharBuffer::wxWxCharBuffer(const wxCStrData& cstr)
: wxCharTypeBufferBase((const wxChar *)cstr)
{
m_str = wxStrDup(cstr.AsString());
}
#endif // _WX_WXSTRINGH__