From 0434b93cc9c4c9e97b24dc4c541e2b1b1fd42dc7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 Oct 2021 21:09:41 +0200 Subject: [PATCH] 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. --- Source/Modules/c.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Modules/c.cxx b/Source/Modules/c.cxx index 9449a9659..832b383e4 100644 --- a/Source/Modules/c.cxx +++ b/Source/Modules/c.cxx @@ -224,13 +224,13 @@ public: } /* ----------------------------------------------------------------------------- - * getProxyName() + * getClassProxyName() * * 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. * ----------------------------------------------------------------------------- */ - String *getProxyName(SwigType *t) { + String *getClassProxyName(SwigType *t) { Node *n = classLookup(t); return n ? getNamespacedName(n) : NULL; @@ -256,7 +256,7 @@ public: String *proxyname = 0; if (String *name = Getattr(n, "name")) { if (String *scopename_prefix = Swig_scopename_prefix(name)) { - proxyname = getProxyName(scopename_prefix); + proxyname = getClassProxyName(scopename_prefix); Delete(scopename_prefix); } } @@ -304,7 +304,7 @@ public: // Special case, just leave it unchanged. typestr = NewString("SwigObj"); } else { - typestr = getProxyName(classnametype); + typestr = getClassProxyName(classnametype); if (!typestr) { if (SwigType_isbuiltin(btype)) { // This should work just as well in C without any changes.