fixup! Patch of http://sourceforge.net/p/swig/mailman/message/29816385
This commit is contained in:
parent
b79646ce4c
commit
f38f6371a3
2 changed files with 8 additions and 2 deletions
|
|
@ -49,7 +49,8 @@ class string;
|
|||
jenv->ReleaseStringUTFChars($input, $1_pstr); %}
|
||||
|
||||
%typemap(directorin,descriptor="Ljava/lang/String;") string
|
||||
%{ $input = jenv->NewStringUTF($1.c_str()); %}
|
||||
%{ $input = jenv->NewStringUTF($1.c_str());
|
||||
Swig::LocalRefGuard refGuard_$input(jenv, $input); %}
|
||||
|
||||
%typemap(out) string
|
||||
%{ $result = jenv->NewStringUTF($1.c_str()); %}
|
||||
|
|
@ -98,7 +99,8 @@ class string;
|
|||
jenv->ReleaseStringUTFChars($input, $1_pstr); %}
|
||||
|
||||
%typemap(directorin,descriptor="Ljava/lang/String;") const string &
|
||||
%{ $input = jenv->NewStringUTF($1.c_str()); %}
|
||||
%{ $input = jenv->NewStringUTF($1.c_str());
|
||||
Swig::LocalRefGuard refGuard_$input(jenv, $input); %}
|
||||
|
||||
%typemap(out) const string &
|
||||
%{ $result = jenv->NewStringUTF($1->c_str()); %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue