From a44a6f6c87521164c60a2eb2aa0affe97dc9ceaa Mon Sep 17 00:00:00 2001 From: Giles Payne Date: Wed, 10 May 2023 15:34:25 +0900 Subject: [PATCH] Fix issue in Objective-C generator when a class name is a substring of its base class name --- modules/objc/generator/gen_objc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/objc/generator/gen_objc.py b/modules/objc/generator/gen_objc.py index 8f2dcf2bef..07f2f41dec 100755 --- a/modules/objc/generator/gen_objc.py +++ b/modules/objc/generator/gen_objc.py @@ -290,7 +290,7 @@ class ClassInfo(GeneralInfo): self.member_classes = [] # Only relevant for modules self.member_enums = [] # Only relevant for modules if decl[1]: - self.base = re.sub(r"^.*:", "", decl[1].split(",")[0]).strip().replace(self.objc_name, "") + self.base = re.sub(r"^.*:", "", decl[1].split(",")[0]).strip() if self.base: self.is_base_class = False self.native_ptr_name = "nativePtr" + self.objc_name