diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-27 19:01:43 +0100 |
---|---|---|
committer | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-07 00:13:35 +0200 |
commit | a75360f58f60d1cdbf102e58997555f490969144 (patch) | |
tree | 743260c4bfbe7f29716108e47c1526184bcc1d31 /subsurface.qrc | |
parent | a4a06c48bfe2fa6f1644d68bf82e98c196aed7d0 (diff) | |
download | subsurface-a75360f58f60d1cdbf102e58997555f490969144.tar.gz |
CylindersModel: test for CHANGED() outside of switch statement
A small code consolidation:
With one exception, all targets of the switch statement would
test for CHANGED(). Instead do the test once and exit early.
This changes the behavior of the function: if not changed, there
will be no more dataChanged-signal. However, this appears to be
the correct thing to do anyway. And it is easily changed if
it matters after all.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'subsurface.qrc')
0 files changed, 0 insertions, 0 deletions