fixes for const char[]

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-05-27 11:29:39 +00:00
commit a04dc64d04
2 changed files with 2 additions and 3 deletions

View file

@ -986,8 +986,7 @@ public:
Printf(f_shadow_stubs,"%s = %s.%s\n", global_name, module, global_name);
}
}
if ((shadow) && (SwigType_isconst(t))) {
if ((shadow) && (!SwigType_ismutable(t))) {
if (!in_class) {
Printf(f_shadow_stubs,"%s = %s.%s\n", iname, global_name, iname);
}