Add break; statements in the generated switch code for model::data()
ClosedPublic

Authored by kossebau on Sep 15 2018, 7:45 PM.

Details

Summary

Compiler complains about generated code with
warning: this statement may fall through
and is slightly right, as the code might fall through if a role is used
which is not catched for a column.

Diff Detail

Repository
R881 Rust Qt Binding Generator
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau requested review of this revision.Sep 15 2018, 7:45 PM
kossebau created this revision.
vandenoever accepted this revision.Sep 15 2018, 7:59 PM

Very good. Weirdly, my compiler did not complain about this.

This revision is now accepted and ready to land.Sep 15 2018, 7:59 PM
This revision was automatically updated to reflect the committed changes.