From 579c2b7d8757d31a63e515eff129e733f86bd6b0 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 9 Feb 2003 23:51:55 +0000 Subject: [PATCH] Removed intermediate variable for SWIGTYPE out typemap as suggested by Heiner Petith git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4278 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/java/java.swg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SWIG/Lib/java/java.swg b/SWIG/Lib/java/java.swg index 8836e1450..74ed4a72a 100644 --- a/SWIG/Lib/java/java.swg +++ b/SWIG/Lib/java/java.swg @@ -348,8 +348,7 @@ $1 = &temp; %} $1 = *argp; %} %typemap(out) SWIGTYPE #ifdef __cplusplus -%{$&1_ltype $1ptr = new $1_ltype(($1_ltype &)$1); - *($&1_ltype*)&$result = $1ptr; %} +%{*($&1_ltype*)&$result = new $1_ltype(($1_ltype &)$1); %} #else { $&1_ltype $1ptr = ($&1_ltype) malloc(sizeof($1_ltype));