corrections for some SWIG deprecation warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -30,7 +30,7 @@ MAKE_CONST_WXSTRING(DefaultTimeSpanFormat);
|
|||||||
$1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong($input));
|
$1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong($input));
|
||||||
temp = true;
|
temp = true;
|
||||||
}
|
}
|
||||||
%typemap(python,freearg) wxDateTime::TimeZone& {
|
%typemap(freearg) wxDateTime::TimeZone& {
|
||||||
if (temp$argnum) delete $1;
|
if (temp$argnum) delete $1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ MAKE_CONST_WXSTRING(DefaultTimeSpanFormat);
|
|||||||
|
|
||||||
// Convert a wxLongLong to a Python Long by getting the hi/lo dwords, then
|
// Convert a wxLongLong to a Python Long by getting the hi/lo dwords, then
|
||||||
// shifting and oring them together
|
// shifting and oring them together
|
||||||
%typemap(python, out) wxLongLong {
|
%typemap(out) wxLongLong {
|
||||||
PyObject *hi, *lo, *shifter, *shifted;
|
PyObject *hi, *lo, *shifter, *shifted;
|
||||||
hi = PyLong_FromLong( $1.GetHi() );
|
hi = PyLong_FromLong( $1.GetHi() );
|
||||||
lo = PyLong_FromLong( $1.GetLo() );
|
lo = PyLong_FromLong( $1.GetLo() );
|
||||||
|
Reference in New Issue
Block a user