From 5551baca88225d3e29dd8823fb85d9481646c899 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 20 Jan 2006 18:11:53 +0000 Subject: [PATCH] corrections for some SWIG deprecation warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_datetime.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wxPython/src/_datetime.i b/wxPython/src/_datetime.i index 702c6ff32d..8184fd5c92 100644 --- a/wxPython/src/_datetime.i +++ b/wxPython/src/_datetime.i @@ -30,7 +30,7 @@ MAKE_CONST_WXSTRING(DefaultTimeSpanFormat); $1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong($input)); temp = true; } -%typemap(python,freearg) wxDateTime::TimeZone& { +%typemap(freearg) wxDateTime::TimeZone& { 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 // shifting and oring them together -%typemap(python, out) wxLongLong { +%typemap(out) wxLongLong { PyObject *hi, *lo, *shifter, *shifted; hi = PyLong_FromLong( $1.GetHi() ); lo = PyLong_FromLong( $1.GetLo() );