Fix Ruby smartptr feature for classes in a namespace
This commit is contained in:
parent
155233bea6
commit
14e1c47288
1 changed files with 3 additions and 2 deletions
|
|
@ -1830,7 +1830,7 @@ public:
|
||||||
Wrapper_add_local(f, "classname", classname);
|
Wrapper_add_local(f, "classname", classname);
|
||||||
}
|
}
|
||||||
if (action) {
|
if (action) {
|
||||||
SwigType *smart = Swig_cparse_smartptr(n);
|
SwigType *smart = Swig_cparse_smartptr(pn);
|
||||||
String *result_name = NewStringf("%s%s", smart ? "smart" : "", Swig_cresult_name());
|
String *result_name = NewStringf("%s%s", smart ? "smart" : "", Swig_cresult_name());
|
||||||
if (smart) {
|
if (smart) {
|
||||||
String *result_var = NewStringf("%s *%s = 0", SwigType_namestr(smart), result_name);
|
String *result_var = NewStringf("%s *%s = 0", SwigType_namestr(smart), result_name);
|
||||||
|
|
@ -1930,7 +1930,8 @@ public:
|
||||||
|
|
||||||
/* Extra code needed for new and initialize methods */
|
/* Extra code needed for new and initialize methods */
|
||||||
if (current == CONSTRUCTOR_ALLOCATE) {
|
if (current == CONSTRUCTOR_ALLOCATE) {
|
||||||
SwigType *smart = Swig_cparse_smartptr(n);
|
Node *pn = Swig_methodclass(n);
|
||||||
|
SwigType *smart = Swig_cparse_smartptr(pn);
|
||||||
if (smart)
|
if (smart)
|
||||||
SwigType_add_pointer(smart);
|
SwigType_add_pointer(smart);
|
||||||
String *classtype = smart ? smart : t;
|
String *classtype = smart ? smart : t;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue