diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-17 11:46:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-17 15:20:43 +0200 |
commit | 0b49aaf09becf8775411b7082b95e87086e8b5d7 (patch) | |
tree | 887379b31ecf5508ce732cf027ed7cde78b60b4b | |
parent | 1d6c30889d808ec50d0a5c6164481ebc09f6fce4 (diff) |
loplugin:implicitboolconversion gold?
The code was like that ever since 84a3db80b4fd66c6854b3135b5f69b61fd828e62
"initial import" but looks very much like the intent was to make the conditional
operator bind tighter than the less-than operator.
Change-Id: I810aa5dc56f02e98111f4879db50c59a9b69b8d6
-rw-r--r-- | sw/source/core/edit/ednumber.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/ednumber.cxx b/sw/source/core/edit/ednumber.cxx index c885aaca7643..ee3b3c835d33 100644 --- a/sw/source/core/edit/ednumber.cxx +++ b/sw/source/core/edit/ednumber.cxx @@ -510,7 +510,7 @@ bool SwEditShell::MoveNumParas( bool bUpperLower, bool bUpperLeft ) bRet = GetDoc()->MoveParagraph( aCrsr, nOffset ); } } - else if( bUpperLeft ? nUpperLevel : nLowerLevel+1 < MAXLEVEL ) + else if( (bUpperLeft ? nUpperLevel : nLowerLevel+1) < MAXLEVEL ) { aCrsr.Move( fnMoveBackward, fnGoNode ); bRet = GetDoc()->NumUpDown( aCrsr, !bUpperLeft ); |