This is not necessary any longer after the previous commit which changed
cMB2WC() to not return NULL for empty input.
See #12432.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65837
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
WXDLLIMPEXP_CORE wxCharBuffer
wxConvertToGTK(const wxString& s, wxFontEncoding enc)
{
- // Passing an empty string to cMB2WC() returns an invalid buffer, i.e. a
- // buffer whose data is NULL and this can result in passing NULL to a GTK+
- // function and a crash, so handle this case specially to avoid this.
- if ( s.empty() )
- return wxCharBuffer("");
-
wxWCharBuffer wbuf;
if ( enc == wxFONTENCODING_SYSTEM || enc == wxFONTENCODING_DEFAULT )
{