1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

fix: resolve Swift method name conflicts by adding missing namespace

This commit is contained in:
Yang Chao
2024-07-18 00:20:17 +08:00
parent 53a5b85d9f
commit bcce38c05a
+1
View File
@@ -481,6 +481,7 @@ class FuncInfo(GeneralInfo):
self.objc_name = "getelem"
if self.namespace in namespaces_dict:
self.objc_name = '%s_%s' % (namespaces_dict[self.namespace], self.objc_name)
self.swift_name = '%s_%s' % (namespaces_dict[self.namespace], self.swift_name)
for m in decl[2]:
if m.startswith("="):
self.objc_name = m[1:]