[octave] Make sure SWIG_global_name is a std::string for comparison
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13107 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
00328ccdb3
commit
f8135379a1
1 changed files with 2 additions and 2 deletions
|
|
@ -198,7 +198,7 @@ DEFUN_DLD( SWIG_name, args, nargout, SWIG_name_usage ) {
|
|||
SWIG_Octave_InstallFunction(me, "subclass");
|
||||
|
||||
octave_swig_type* cvar_ns=0;
|
||||
if (SWIG_global_name != ".") {
|
||||
if (std::string(SWIG_global_name) != ".") {
|
||||
cvar_ns=new octave_swig_type;
|
||||
for (int j=0;swig_globals[j].name;++j)
|
||||
if (swig_globals[j].get_method)
|
||||
|
|
@ -206,7 +206,7 @@ DEFUN_DLD( SWIG_name, args, nargout, SWIG_name_usage ) {
|
|||
}
|
||||
|
||||
module_ns=new octave_swig_type(0, 0, 0, true);
|
||||
if (SWIG_global_name != ".") {
|
||||
if (std::string(SWIG_global_name) != ".") {
|
||||
module_ns->assign(SWIG_global_name,Swig::swig_value_ref(cvar_ns));
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue