Merge pull request #23598 from komakai:fix-objc-gen-baseclass

Fix Objective-C generator handling of base class names
pull/23600/head
Alexander Smorkalov 2 years ago committed by GitHub
commit 8baabdfb57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save