diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-27 09:46:06 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-27 14:04:40 +0100 |
commit | a2656563f1a7639a99276fda90b6c8f675d20fc5 (patch) | |
tree | cc9eb4f064b1e8cdfce9ac42c52dfa6ae54f2b70 /sdext | |
parent | 0093ae5f2ca1141f199aa9ae3b34b05a33def928 (diff) |
loplugin:unnecessaryparen: Warn about parentheses around literals
...that are not composed of multiple tokens, like ("foo" "bar"). Also don't yet
warn about Boolean literals, which are sometimes wrapped in parentheses to
silence unreachable-code warnings.
To avoid multiple warnings about code like
f((0))
switch to generally using a set of ParenExpr to keep track of which occurrences
have already been handled.
Change-Id: I036a25a92836ec6ab6c56ea848f71bc6d63822bc
Reviewed-on: https://gerrit.libreoffice.org/45317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/minimizer/optimizerdialogcontrols.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/minimizer/optimizerdialogcontrols.cxx b/sdext/source/minimizer/optimizerdialogcontrols.cxx index 3c996f8c8b56..f6d575849273 100644 --- a/sdext/source/minimizer/optimizerdialogcontrols.cxx +++ b/sdext/source/minimizer/optimizerdialogcontrols.cxx @@ -838,9 +838,9 @@ void OptimizerDialog::InitPage4() Any( OUString("STR_SAVE_AS") ), Any( (sal_Int32)( PAGE_POS_X + 6 ) ), Any( (sal_Int32)( DIALOG_HEIGHT - 75 ) ), - Any( (sal_Int32)( 0 ) ), - Any( (sal_Int32)( 100 ) ), - Any( (sal_Int32)( 0 ) ), + Any( (sal_Int32)0 ), + Any( (sal_Int32)100 ), + Any( (sal_Int32)0 ), Any( (sal_Int32)( PAGE_WIDTH - 12 ) ) }; sal_Int32 nCount = SAL_N_ELEMENTS( pNames ); |