Skip to content

Commit

Permalink
Merge pull request opencv#18905 from alalek:objc_fix_return_type_hand…
Browse files Browse the repository at this point in the history
…ling
  • Loading branch information
alalek committed Nov 24, 2020
2 parents 0105f8f + eafe6cc commit e1a8fc0
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 @@ -1123,7 +1123,7 @@ def gen_func(self, ci, fi, extension_implementations, extension_signatures):
if cpp_type.find("::") == -1:
cpp_type = self.get_namespace_prefix(cpp_type) + cpp_type
prologue.append("NSMutableArray<NSMutableArray<" + objc_type + ">*>* retVal = [NSMutableArray new];")
ret_val = "std::vector<" + cpp_type + "> retValVector = "
ret_val = "std::vector< std::vector<" + cpp_type + "> > retValVector = "
epilogue.append("CV2OBJC2(" + cpp_type + ", " + objc_type[:-1] + ", retValVector, retVal);")
elif ret_type.startswith("Ptr_"):
cpp_type = type_dict[ret_type]["c_type"]
Expand Down

0 comments on commit e1a8fc0

Please sign in to comment.