mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
objc: fix std::string handling
- arg types may be passed as string instead of std::string
This commit is contained in:
parent
a7c150ec66
commit
2e7ef6f4e8
@ -215,6 +215,13 @@
|
|||||||
"from_cpp": "[NSString stringWithUTF8String:%(n)s.c_str()]",
|
"from_cpp": "[NSString stringWithUTF8String:%(n)s.c_str()]",
|
||||||
"swift_type": "String"
|
"swift_type": "String"
|
||||||
},
|
},
|
||||||
|
"string": {
|
||||||
|
"cast_to": "std::string",
|
||||||
|
"objc_type": "NSString*",
|
||||||
|
"to_cpp": "std::string(%(n)s.UTF8String)",
|
||||||
|
"from_cpp": "[NSString stringWithUTF8String:%(n)s.c_str()]",
|
||||||
|
"swift_type": "String"
|
||||||
|
},
|
||||||
"TermCriteria": {
|
"TermCriteria": {
|
||||||
"objc_type": "TermCriteria*",
|
"objc_type": "TermCriteria*",
|
||||||
"to_cpp": "%(n)s.nativeRef",
|
"to_cpp": "%(n)s.nativeRef",
|
||||||
|
Loading…
Reference in New Issue
Block a user