LGTM: [skip ci] fix: Empty branch of conditional

An empty block after a conditional can be a sign of an omission and can decrease maintainability of the code.
Such blocks should contain an explanatory comment to aid future maintainers.
This commit is contained in:
wmayer
2020-07-26 15:49:14 +02:00
parent 8dac7e4666
commit dc65b055e5
11 changed files with 36 additions and 18 deletions

View File

@@ -739,6 +739,7 @@ void NavigationStyle::zoom(SoCamera * cam, float diffvalue)
// sqrt(FLT_MAX) == ~ 1e+19, which should be both safe for further
// calculations and ok for the end-user and app-programmer.
if (distorigo > float(sqrt(FLT_MAX))) {
// do nothing here
}
else {
cam->position = newpos;