Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3484/wxLua/bindings/wxwidgets
Modified Files:
datetime.i
Log Message:
"fix" for wxGetTranslation. Seems like passing an empty wxString for const wxChar*
parameter fails if the function checks that the input == NULL.
This should evaluate to true, str.c_str()[0] == 0, so what's really the problem?
Index: datetime.i
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/datetime.i,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** datetime.i 26 Jun 2007 16:15:47 -0000 1.35
--- datetime.i 26 Jun 2007 22:16:38 -0000 1.36
***************
*** 906,913 ****
%function wxLocale* wxGetLocale()
! %wxchkver_2_8 %function wxString wxGetTranslation(const wxString& sz, const wxString& domain="")
!%wxchkver_2_8 %function wxString wxGetTranslation(const wxString& sz)
! %wxchkver_2_8 %rename wxGetTranslationPlural %function wxString wxGetTranslation(const wxString& sz1, const wxString& sz2, size_t n, const wxString& domain="")
!%wxchkver_2_8 %rename wxGetTranslationPlural %function wxString wxGetTranslation(const wxString& sz1, const wxString& sz2, size_t n)
--- 906,913 ----
%function wxLocale* wxGetLocale()
! %wxchkver_2_8 %function wxString wxGetTranslation(const wxString& sz, const wxChar* domain=NULL)
!%wxchkver_2_8 %function wxString wxGetTranslation(const wxString& sz)
! %wxchkver_2_8 %rename wxGetTranslationPlural %function wxString wxGetTranslation(const wxString& sz1, const wxString& sz2, size_t n, const wxChar* domain=NULL)
!%wxchkver_2_8 %rename wxGetTranslationPlural %function wxString wxGetTranslation(const wxString& sz1, const wxString& sz2, size_t n)
|