fixed VC6 warnings about non-dllexported members in dllexported classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-06-11 19:59:11 +00:00
parent ae51cebbe6
commit 541aa82180
4 changed files with 29 additions and 10 deletions

View File

@@ -150,8 +150,17 @@ private:
#endif // wxUSE_UNICODE && !wxUSE_UTF8_LOCALE_ONLY
private:
#ifdef __VISUALC__
// "struct 'ConvertedBuffer<T>' needs to have dll-interface to be used by
// clients of class 'wxString'" - this is private, we don't care
#pragma warning (disable:4251)
#endif
wxCharBuffer m_char;
wxWCharBuffer m_wchar;
#ifdef __VISUALC__
#pragma warning (default:4251)
#endif
// NB: we can use a pointer here, because wxFormatString is only used
// as function argument, so it has shorter life than the string
// passed to the ctor