From 080d3075e362c5672e8254acaaa729a19a6ae342 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 Oct 2021 21:11:02 +0200 Subject: [PATCH] Rename getNamespacedName() to getProxyName() This is a more logical name for this function, as it caches its return value in "proxyname" attribute and doesn't really have much to do with namespaces. No real changes. --- Source/Modules/c.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Modules/c.cxx b/Source/Modules/c.cxx index 832b383e4..b0ea99506 100644 --- a/Source/Modules/c.cxx +++ b/Source/Modules/c.cxx @@ -176,7 +176,8 @@ public: Delete(module_prefix); } - String *getNamespacedName(Node *n) + // Return the name to be used in proxy code and cache it as "proxyname". + String *getProxyName(Node *n) { if (!n) return 0; @@ -233,7 +234,7 @@ public: String *getClassProxyName(SwigType *t) { Node *n = classLookup(t); - return n ? getNamespacedName(n) : NULL; + return n ? getProxyName(n) : NULL; } @@ -265,7 +266,7 @@ public: Delete(proxyname); } else { // global enum or enum in a namespace - enumname = getNamespacedName(n); + enumname = getProxyName(n); } Setattr(n, "enumname", enumname); Delete(enumname); @@ -1274,7 +1275,7 @@ public: * --------------------------------------------------------------------- */ virtual int classHandler(Node *n) { - String *name = getNamespacedName(n); + String *name = getProxyName(n); if (CPlusPlus) { // inheritance support: attach all members from base classes to this class