mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 01:56:28 +08:00
abaplint detected a false negative
"Exit is only allowed in loops" - it is wrong by any programming standard to prohibit the EXIT statement in WHILE loops (as it is used here) But I used this commit to change the idiom `WHILE lo_iterator->has_next( )` to `WHILE lo_iterator->has_next( ) EQ abap_true` for backwards compatibility instead
This commit is contained in:
parent
523b51d351
commit
6881c33f6e
|
@ -3270,7 +3270,7 @@ METHOD create_xl_drawing_for_comments.
|
|||
).
|
||||
|
||||
lo_iterator = lo_comments->get_iterator( ).
|
||||
WHILE lo_iterator->has_next( ).
|
||||
WHILE lo_iterator->has_next( ) EQ abap_true.
|
||||
lo_anchor ?= lo_anchors->get_item( sy-index - 1 ).
|
||||
IF lo_anchor IS NOT BOUND.
|
||||
EXIT.
|
||||
|
|
Loading…
Reference in New Issue
Block a user