diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-02 14:16:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-02 16:45:18 +0100 |
commit | 21773f6d9a06012634716f3af5ccc74b6204a569 (patch) | |
tree | e365f0399b2f8b95b7ad4b664b980ac77ac529ac | |
parent | 5c4955ed4593f529fd902cdf3afab3c8150b3214 (diff) |
cppcheck: noExplicitConstructor
Change-Id: I0b1cac50f9e158004f8c1b8294b7a1b9f21f9628
5 files changed, 10 insertions, 7 deletions
diff --git a/accessibility/source/extended/AccessibleToolPanelDeck.cxx b/accessibility/source/extended/AccessibleToolPanelDeck.cxx index 85ce154f90c0..e1fb62f9f71d 100644 --- a/accessibility/source/extended/AccessibleToolPanelDeck.cxx +++ b/accessibility/source/extended/AccessibleToolPanelDeck.cxx @@ -106,7 +106,7 @@ namespace accessibility class MethodGuard { public: - MethodGuard( AccessibleToolPanelDeck_Impl& i_rImpl ) + explicit MethodGuard( AccessibleToolPanelDeck_Impl& i_rImpl ) :m_aGuard() { i_rImpl.checkDisposed(); diff --git a/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx b/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx index 50b9cea3da34..11dc7300e339 100644 --- a/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx +++ b/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx @@ -68,7 +68,7 @@ namespace accessibility class AccessibleWrapper : public AccessibleWrapper_Base { public: - AccessibleWrapper( const Reference< XAccessibleContext >& i_rContext ) + explicit AccessibleWrapper( const Reference< XAccessibleContext >& i_rContext ) :m_xContext( i_rContext ) { } @@ -258,7 +258,7 @@ namespace accessibility class MethodGuard { public: - MethodGuard( AccessibleToolPanelTabBar_Impl& i_rImpl ) + explicit MethodGuard( AccessibleToolPanelTabBar_Impl& i_rImpl ) :m_aGuard() { i_rImpl.checkDisposed(); diff --git a/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx b/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx index b8058d6e4f30..644b3fad2a32 100644 --- a/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx +++ b/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx @@ -221,7 +221,7 @@ namespace accessibility class ItemMethodGuard { public: - ItemMethodGuard( AccessibleToolPanelDeckTabBarItem_Impl& i_rImpl ) + explicit ItemMethodGuard( AccessibleToolPanelDeckTabBarItem_Impl& i_rImpl ) :m_aGuard() { i_rImpl.checkDisposed(); diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index fbe72a0e9d07..1a391ce13f04 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -982,7 +982,10 @@ Document::retrieveCharacterBounds(Paragraph const * pParagraph, struct IndexCompare { const css::beans::PropertyValue* pValues; - IndexCompare( const css::beans::PropertyValue* pVals ) : pValues(pVals) {} + explicit IndexCompare(const css::beans::PropertyValue* pVals) + : pValues(pVals) + { + } bool operator() ( const sal_Int32& a, const sal_Int32& b ) const { return pValues[a].Name < pValues[b].Name; diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index 3fbad43d9a1f..6a1d338941db 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -129,8 +129,8 @@ public: class AnimationNode : public AnimationNodeBase { public: - AnimationNode( sal_Int16 nNodeType ); - AnimationNode( const AnimationNode& rNode ); + explicit AnimationNode(sal_Int16 nNodeType); + explicit AnimationNode(const AnimationNode& rNode); virtual ~AnimationNode(); // XInterface |