Rename getProxyName() to getClassProxyName()
Show that this function only returns non-null result for classes, as this was not at all obvious before. No real changes.
This commit is contained in:
parent
d7f06c3721
commit
0434b93cc9
1 changed files with 4 additions and 4 deletions
|
|
@ -224,13 +224,13 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* getProxyName()
|
* getClassProxyName()
|
||||||
*
|
*
|
||||||
* Test to see if a type corresponds to something wrapped with a proxy class.
|
* Test to see if a type corresponds to something wrapped with a proxy class.
|
||||||
* Return NULL if not, otherwise the proxy class name to be freed by the caller.
|
* Return NULL if not, otherwise the proxy class name to be freed by the caller.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
String *getProxyName(SwigType *t) {
|
String *getClassProxyName(SwigType *t) {
|
||||||
Node *n = classLookup(t);
|
Node *n = classLookup(t);
|
||||||
|
|
||||||
return n ? getNamespacedName(n) : NULL;
|
return n ? getNamespacedName(n) : NULL;
|
||||||
|
|
@ -256,7 +256,7 @@ public:
|
||||||
String *proxyname = 0;
|
String *proxyname = 0;
|
||||||
if (String *name = Getattr(n, "name")) {
|
if (String *name = Getattr(n, "name")) {
|
||||||
if (String *scopename_prefix = Swig_scopename_prefix(name)) {
|
if (String *scopename_prefix = Swig_scopename_prefix(name)) {
|
||||||
proxyname = getProxyName(scopename_prefix);
|
proxyname = getClassProxyName(scopename_prefix);
|
||||||
Delete(scopename_prefix);
|
Delete(scopename_prefix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -304,7 +304,7 @@ public:
|
||||||
// Special case, just leave it unchanged.
|
// Special case, just leave it unchanged.
|
||||||
typestr = NewString("SwigObj");
|
typestr = NewString("SwigObj");
|
||||||
} else {
|
} else {
|
||||||
typestr = getProxyName(classnametype);
|
typestr = getClassProxyName(classnametype);
|
||||||
if (!typestr) {
|
if (!typestr) {
|
||||||
if (SwigType_isbuiltin(btype)) {
|
if (SwigType_isbuiltin(btype)) {
|
||||||
// This should work just as well in C without any changes.
|
// This should work just as well in C without any changes.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue