diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-10-26 10:27:48 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-10-26 10:27:48 +0200 |
commit | 084f454e8caa2d9e43f7bdea098538bfb87423d8 (patch) | |
tree | 46c900bd78b03d20886dadad92adb17cf3045d4b /framework/source/uielement/uicommanddescription.cxx | |
parent | 7e87403953dfd54bf1e904ccc7436c6f327a9069 (diff) |
More loplugin:unnecessaryparen
81892b2037453108b9bde1512a500cf3b2ce438a "loplugin:unnecessaryparen when
compiling as C++17, so the ParenExpr is no longer hidden behind
ExprWithCleanups/CXXConstructExpr/MaterializedTemporaryExpr wrappers" gave me
the idea to generally look though IgnoreImplicit instead of IngoreImpCasts in
loplugin:unnecessaryparen. However, that would still not look through implicit
CXXConstructExpr, so would still not have found the occurrences in
81892b2037453108b9bde1512a500cf3b2ce438a when compiling in pre-C++17 mode.
Therefore, let ignoreAllImplicit also look through CXXConstructExpr. (I am not
entirely sure in which situations non-implicit CXXConstructExpr---that should
thus not be ignored---would occur, but assume they would be underneath something
like a CXXFunctionalCastExpr, which is not ignored.)
Change-Id: I947d08742e1809150ecc34a7abe84cca5e0ce843
Diffstat (limited to 'framework/source/uielement/uicommanddescription.cxx')
-rw-r--r-- | framework/source/uielement/uicommanddescription.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx index 7f32f70541ba..bd199b6891b1 100644 --- a/framework/source/uielement/uicommanddescription.cxx +++ b/framework/source/uielement/uicommanddescription.cxx @@ -265,7 +265,7 @@ sal_Bool SAL_CALL ConfigurationAccess_UICommand::hasByName( const OUString& rCom // XElementAccess Type SAL_CALL ConfigurationAccess_UICommand::getElementType() { - return( cppu::UnoType<Sequence< PropertyValue >>::get() ); + return cppu::UnoType<Sequence< PropertyValue >>::get(); } sal_Bool SAL_CALL ConfigurationAccess_UICommand::hasElements() @@ -706,7 +706,7 @@ sal_Bool SAL_CALL UICommandDescription::hasByName( const OUString& aName ) // XElementAccess Type SAL_CALL UICommandDescription::getElementType() { - return( cppu::UnoType<XNameAccess>::get()); + return cppu::UnoType<XNameAccess>::get(); } sal_Bool SAL_CALL UICommandDescription::hasElements() |