diff options
author | Zandra <[email protected]> | 2016-05-20 12:19:22 +0200 |
---|---|---|
committer | Zandra <[email protected]> | 2016-05-24 10:03:23 +0200 |
commit | 59c8678ca4765cabf1db0aa747eb2735b8af3a42 (patch) | |
tree | ad3a11e06d91d14625e9b3d63c7c22ab836be0f8 /lib/debugger/src/dbg_wx_code.erl | |
parent | 673876912ae1c0a09d67b53dcec80544fcf517c7 (diff) | |
download | otp-59c8678ca4765cabf1db0aa747eb2735b8af3a42.tar.gz otp-59c8678ca4765cabf1db0aa747eb2735b8af3a42.tar.bz2 otp-59c8678ca4765cabf1db0aa747eb2735b8af3a42.zip |
dbg_wx* - fix remaining unmached_return warnings
Diffstat (limited to 'lib/debugger/src/dbg_wx_code.erl')
-rw-r--r-- | lib/debugger/src/dbg_wx_code.erl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/debugger/src/dbg_wx_code.erl b/lib/debugger/src/dbg_wx_code.erl index f8fc331a81..473963500a 100644 --- a/lib/debugger/src/dbg_wx_code.erl +++ b/lib/debugger/src/dbg_wx_code.erl @@ -127,20 +127,22 @@ load_code(Ed, Code) -> %%io:format("~p ~p ~p~n", [Lines, Sz, LW]), ?stc:setMarginWidth(Ed, 0, LW+5), ?stc:setReadOnly(Ed, true), - Ed. + ok. unload_code(Ed) -> ?stc:setReadOnly(Ed, false), ?stc:setTextRaw(Ed, <<0:8>>), ?stc:setReadOnly(Ed, true), - Ed. + ok. add_break_to_code(Ed, Line, active) -> ?stc:markerDelete(Ed, Line-1, 1), - ?stc:markerAdd(Ed, Line-1, 0); + ?stc:markerAdd(Ed, Line-1, 0), + ok; add_break_to_code(Ed, Line, inactive) -> ?stc:markerDelete(Ed, Line-1, 0), - ?stc:markerAdd(Ed, Line-1, 1). + ?stc:markerAdd(Ed, Line-1, 1), + ok. del_break_from_code(Ed,Line) -> ?stc:markerDelete(Ed, Line-1, 0), |