diff options
author | Swati Sharma <itawswati@gmail.com> | 2012-08-12 15:10:31 +0000 |
---|---|---|
committer | Swati Sharma <itawswati@gmail.com> | 2012-08-12 15:10:31 +0000 |
commit | 03787699be3e60c3013f81a6f3a992297984f0c8 (patch) | |
tree | 1fbd6569440f2f1bd6e59069238455ed4be3f254 | |
parent | ccddf6bd480ebfa8c10e2944bc1beba31b4ba30f (diff) | |
download | swig-03787699be3e60c3013f81a6f3a992297984f0c8.tar.gz |
Fixed error for static member function runtime test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-objc@13599 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Source/Modules/objc.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Modules/objc.cxx b/Source/Modules/objc.cxx index 14f11c8b8..cec583525 100644 --- a/Source/Modules/objc.cxx +++ b/Source/Modules/objc.cxx @@ -434,6 +434,8 @@ int OBJECTIVEC::memberfunctionHandler(Node *n) { * --------------------------------------------------------------------- */ int OBJECTIVEC::staticmemberfunctionHandler(Node *n) { + String *symname = Getattr(n, "sym:name"); + proxyfuncname = symname; static_member_func_flag = true; Language::staticmemberfunctionHandler(n); static_member_func_flag = false; @@ -1154,7 +1156,7 @@ void OBJECTIVEC::emitProxyClassFunction(Node *n) { } else if (member_func_flag) { proxyfunctionname = Copy(proxyfuncname); } else { - proxyfunctionname = Swig_scopename_last(name); + proxyfunctionname = Copy(proxyfuncname); } // Deal with overloading |