From: <ol...@us...> - 2007-09-23 21:40:32
|
Revision: 9952 http://swig.svn.sourceforge.net/swig/?rev=9952&view=rev Author: olly Date: 2007-09-23 14:40:29 -0700 (Sun, 23 Sep 2007) Log Message: ----------- Use push_back(wchar_t) instead of append(wchar_t) since append() is non-standard (SF#1799992). Modified Paths: -------------- trunk/Lib/java/std_wstring.i Modified: trunk/Lib/java/std_wstring.i =================================================================== --- trunk/Lib/java/std_wstring.i 2007-09-23 21:39:16 UTC (rev 9951) +++ trunk/Lib/java/std_wstring.i 2007-09-23 21:40:29 UTC (rev 9952) @@ -39,7 +39,7 @@ if ($1_len) { $1.reserve($1_len); for (jsize i = 0; i < $1_len; ++i) { - $1.append((wchar_t)$1_pstr[i]); + $1.push_back((wchar_t)$1_pstr[i]); } } jenv->ReleaseStringChars($input, $1_pstr); @@ -56,7 +56,7 @@ if ($1_len) { $result.reserve($1_len); for (jsize i = 0; i < $1_len; ++i) { - $result.append((wchar_t)$1_pstr[i]); + $result.push_back((wchar_t)$1_pstr[i]); } } jenv->ReleaseStringChars($input, $1_pstr); @@ -106,7 +106,7 @@ if ($1_len) { $1_str.reserve($1_len); for (jsize i = 0; i < $1_len; ++i) { - $1_str.append((wchar_t)$1_pstr[i]); + $1_str.push_back((wchar_t)$1_pstr[i]); } } $1 = &$1_str; @@ -126,7 +126,7 @@ if ($1_len) { $1_str.reserve($1_len); for (jsize i = 0; i < $1_len; ++i) { - $1_str.append((wchar_t)$1_pstr[i]); + $1_str.push_back((wchar_t)$1_pstr[i]); } } $result = &$1_str; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |