Skip to content

Commit

Permalink
Merge pull request opencv#23598 from komakai:fix-objc-gen-baseclass
Browse files Browse the repository at this point in the history
Fix Objective-C generator handling of base class names
  • Loading branch information
asmorkalov authored May 10, 2023
2 parents e5e4424 + a44a6f6 commit 8baabdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/objc/generator/gen_objc.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def __init__(self, decl, namespaces=[]): # [ 'class/struct cname', ': base', [mo
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
Expand Down

0 comments on commit 8baabdf

Please sign in to comment.