aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/wx_gen_cpp.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-09-02 15:01:06 +0200
committerDan Gudmundsson <[email protected]>2015-09-02 15:01:06 +0200
commite7d0b4e0f19280daa03292214163880cd7337cb2 (patch)
tree247b7070bc5f3458758bf673ff25b235f4715814 /lib/wx/api_gen/wx_gen_cpp.erl
parent16d57dfa1ace44e0cc6b6bd04e0819ca8566da41 (diff)
downloadotp-e7d0b4e0f19280daa03292214163880cd7337cb2.tar.gz
otp-e7d0b4e0f19280daa03292214163880cd7337cb2.tar.bz2
otp-e7d0b4e0f19280daa03292214163880cd7337cb2.zip
wx: Fix wxAuiManager:getAllPanes/1
It was broken.
Diffstat (limited to 'lib/wx/api_gen/wx_gen_cpp.erl')
-rw-r--r--lib/wx/api_gen/wx_gen_cpp.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/wx/api_gen/wx_gen_cpp.erl b/lib/wx/api_gen/wx_gen_cpp.erl
index 5ce60391c1..5649336b5d 100644
--- a/lib/wx/api_gen/wx_gen_cpp.erl
+++ b/lib/wx/api_gen/wx_gen_cpp.erl
@@ -1020,6 +1020,10 @@ build_ret(Name,_,#type{base={comp,_,_},single=array}) ->
w(" for(unsigned int i=0; i < ~s.GetCount(); i++) {~n", [Name]),
w(" rt.add(~s[i]);~n }~n",[Name]),
w(" rt.endList(~s.GetCount());~n",[Name]);
+build_ret(Name,_,#type{base={class,Class},single=array}) ->
+ w(" for(unsigned int i=0; i < ~s.GetCount(); i++) {~n", [Name]),
+ w(" rt.addRef(getRef((void *) &~s.Item(i), memenv), \"~s\");~n }~n",[Name, Class]),
+ w(" rt.endList(~s.GetCount());~n",[Name]);
build_ret(Name,_,#type{name=List,single=list,base={class,Class}}) ->
w(" int i=0;~n"),
w(" for(~s::const_iterator it = ~s.begin(); it != ~s.end(); ++it) {~n",