resolve the DLL linking problems with MSVC due to use of static variables of template types by replacing them by a non-template unique untypedNullDataPtr

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-11-02 01:48:36 +00:00
parent 428dca1c5b
commit 4e79262f78
2 changed files with 62 additions and 27 deletions

View File

@@ -50,6 +50,18 @@
#define wxStringStrlen wxStrlen
#endif
// ----------------------------------------------------------------------------
// global variables
// ----------------------------------------------------------------------------
namespace wxPrivate
{
static UntypedBufferData s_untypedNullData(NULL);
UntypedBufferData * const untypedNullDataPtr = &s_untypedNullData;
} // namespace wxPrivate
// ---------------------------------------------------------------------------
// static class variables definition
@@ -2096,3 +2108,4 @@ int wxString::Freq(wxUniChar ch) const
}
return count;
}