summaryrefslogtreecommitdiff
path: root/Lib/go/std_string.i
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/go/std_string.i')
-rw-r--r--Lib/go/std_string.i8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/go/std_string.i b/Lib/go/std_string.i
index fb99ccdcd..9922fbe13 100644
--- a/Lib/go/std_string.i
+++ b/Lib/go/std_string.i
@@ -31,17 +31,17 @@ class string;
%{ $result = _swig_makegostring($1.data(), $1.length()); %}
%typemap(directorin) string
-%{ $input = _swig_makegostring($1_name.data(), $1_name.length()); %}
+%{ $input = _swig_makegostring($1.data(), $1.length()); %}
%typemap(in) const string &
%{
- std::string $1_str($input.p, $input.n);
+ $*1_ltype $1_str($input.p, $input.n);
$1 = &$1_str;
%}
%typemap(directorout,warning=SWIGWARN_TYPEMAP_THREAD_UNSAFE_MSG) const string &
%{
- static std::string $1_str;
+ static $*1_ltype $1_str;
$1_str.assign($input.p, $input.n);
$result = &$1_str;
%}
@@ -50,6 +50,6 @@ class string;
%{ $result = _swig_makegostring((*$1).data(), (*$1).length()); %}
%typemap(directorin) const string &
-%{ $input = _swig_makegostring($1_name.data(), $1_name.length()); %}
+%{ $input = _swig_makegostring($1.data(), $1.length()); %}
}