diff options
author | Dan Gudmundsson <[email protected]> | 2017-08-22 08:51:05 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2017-08-22 08:51:05 +0200 |
commit | d25e050b9f22d0a1427dcd2d77528b2bc5264c17 (patch) | |
tree | 7db85174786c3b94bb991a36544481cfb8bc9989 /lib/wx/api_gen/wx_gen.erl | |
parent | 770454f0a32fbc0714c6762ed3e4d761b799814f (diff) | |
parent | 4cc6df95844a299aac361f5e57a850508b07fa59 (diff) | |
download | otp-d25e050b9f22d0a1427dcd2d77528b2bc5264c17.tar.gz otp-d25e050b9f22d0a1427dcd2d77528b2bc5264c17.tar.bz2 otp-d25e050b9f22d0a1427dcd2d77528b2bc5264c17.zip |
Merge remote-tracking branch 'upstream/maint'
* upstream/maint:
Remove deprecation of non deprecated functions
Update so that doxygen 1.8.11 can generate code
Diffstat (limited to 'lib/wx/api_gen/wx_gen.erl')
-rw-r--r-- | lib/wx/api_gen/wx_gen.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/wx/api_gen/wx_gen.erl b/lib/wx/api_gen/wx_gen.erl index 6979a600f3..aadfe4b111 100644 --- a/lib/wx/api_gen/wx_gen.erl +++ b/lib/wx/api_gen/wx_gen.erl @@ -501,10 +501,11 @@ parse_member2(_, _,M0) -> M0. add_param(InParam, Opts, M0) -> - Param0 = case InParam#param.name of - undefined -> InParam#param{name="val"}; + Param0 = case {InParam#param.name, InParam#param.type} of + {undefined, void} -> InParam#param{where=nowhere}; + {undefined,_} -> InParam#param{name="val"}; _ -> InParam - end, + end, Param = case Param0#param.type of #type{base={comp,_,_Comp}} -> Param0; #type{base={class,_Class}} -> Param0; |