]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for wxUSE_UTF8_LOCALE_ONLY case
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 30 Mar 2009 00:00:15 +0000 (00:00 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 30 Mar 2009 00:00:15 +0000 (00:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index 414cfd087f93b10fa2f9758e1a69c1a4b0301fe7..1dc72edeb7da204cc9d95140ef7d6b8b5547aed8 100644 (file)
@@ -4015,7 +4015,7 @@ inline const char* wxCStrData::AsChar() const
 
 inline const wxScopedCharBuffer wxCStrData::AsCharBuf() const
 {
-#if !wxUSE_UNICODE
+#if !wxUSE_UNICODE || wxUSE_UTF8_LOCALE_ONLY
     return wxScopedCharBuffer::CreateNonOwned(AsChar());
 #else
     return AsString().mb_str();