diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-08 09:29:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-08 11:14:38 +0100 |
commit | 0f71828a9582f241dcddac5fe9a11fdf3a1a4e1c (patch) | |
tree | 75cb6a18fd360d7b2e53f4048a56b2e79e8499c8 | |
parent | f6e5a0ac09eb1b02caf62980e4caaf3f239b9ca7 (diff) |
cppcheck: noExplicitConstructor
Change-Id: I8b03c27188b02c3c4a9a9fbbe0df1fb1ae1c5caf
91 files changed, 145 insertions, 145 deletions
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx index 03d319473e7c..35e98c741c4c 100644 --- a/canvas/source/cairo/cairo_textlayout.cxx +++ b/canvas/source/cairo/cairo_textlayout.cxx @@ -622,7 +622,7 @@ namespace cairocanvas class OffsetTransformer { public: - OffsetTransformer( const ::basegfx::B2DHomMatrix& rMat ) : + explicit OffsetTransformer( const ::basegfx::B2DHomMatrix& rMat ) : maMatrix( rMat ) { } diff --git a/canvas/source/factory/cf_service.cxx b/canvas/source/factory/cf_service.cxx index 427acb7948c4..bbe17fb5767c 100644 --- a/canvas/source/factory/cf_service.cxx +++ b/canvas/source/factory/cf_service.cxx @@ -84,7 +84,7 @@ class CanvasFactory public: virtual ~CanvasFactory(); - CanvasFactory( Reference<XComponentContext> const & xContext ); + explicit CanvasFactory( Reference<XComponentContext> const & xContext ); // XServiceInfo virtual OUString SAL_CALL getImplementationName() throw (RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/canvas/source/opengl/ogl_spritedevicehelper.cxx b/canvas/source/opengl/ogl_spritedevicehelper.cxx index 37122d8740ca..597c61577f85 100644 --- a/canvas/source/opengl/ogl_spritedevicehelper.cxx +++ b/canvas/source/opengl/ogl_spritedevicehelper.cxx @@ -541,7 +541,7 @@ namespace oglcanvas } public: - BufferContextImpl(const ::basegfx::B2IVector& rSize) : + explicit BufferContextImpl(const ::basegfx::B2IVector& rSize) : maSize(rSize), mnFrambufferId(0), mnDepthId(0), diff --git a/canvas/source/tools/page.hxx b/canvas/source/tools/page.hxx index 54773f21413d..75ef54402be1 100644 --- a/canvas/source/tools/page.hxx +++ b/canvas/source/tools/page.hxx @@ -42,7 +42,7 @@ namespace canvas class Page { public: - Page( const IRenderModuleSharedPtr& rRenderModule ); + explicit Page( const IRenderModuleSharedPtr& rRenderModule ); FragmentSharedPtr allocateSpace( const ::basegfx::B2ISize& rSize ); bool nakedFragment( const FragmentSharedPtr& pFragment ); @@ -80,7 +80,7 @@ namespace canvas } /// Creates a 'naked' fragment. - PageFragment( const ::basegfx::B2ISize& rSize ) : + explicit PageFragment( const ::basegfx::B2ISize& rSize ) : mpPage(NULL), maRect(rSize), mpBuffer(), diff --git a/canvas/source/tools/pagemanager.hxx b/canvas/source/tools/pagemanager.hxx index 06756dd42488..632d4d6bae6c 100644 --- a/canvas/source/tools/pagemanager.hxx +++ b/canvas/source/tools/pagemanager.hxx @@ -32,7 +32,7 @@ namespace canvas class PageManager { public: - PageManager(const canvas::IRenderModuleSharedPtr& rRenderModule) + explicit PageManager(const canvas::IRenderModuleSharedPtr& rRenderModule) : mpRenderModule(rRenderModule) { } diff --git a/canvas/source/tools/spriteredrawmanager.cxx b/canvas/source/tools/spriteredrawmanager.cxx index a98a65e261c1..5708b972434d 100644 --- a/canvas/source/tools/spriteredrawmanager.cxx +++ b/canvas/source/tools/spriteredrawmanager.cxx @@ -45,7 +45,7 @@ namespace canvas class SpriteTracer { public: - SpriteTracer( const Sprite::Reference& rAffectedSprite ) : + explicit SpriteTracer( const Sprite::Reference& rAffectedSprite ) : mpAffectedSprite(rAffectedSprite), maMoveStartArea(), maMoveEndArea(), diff --git a/canvas/source/tools/surfaceproxymanager.cxx b/canvas/source/tools/surfaceproxymanager.cxx index 7c0ac711f868..62bae2b118f8 100644 --- a/canvas/source/tools/surfaceproxymanager.cxx +++ b/canvas/source/tools/surfaceproxymanager.cxx @@ -33,7 +33,7 @@ namespace canvas { public: - SurfaceProxyManager( const IRenderModuleSharedPtr& rRenderModule ) : + explicit SurfaceProxyManager( const IRenderModuleSharedPtr& rRenderModule ) : mpPageManager( new PageManager(rRenderModule) ) { } diff --git a/canvas/source/vcl/impltools.hxx b/canvas/source/vcl/impltools.hxx index 9d5e0b23b675..eb639b5d0723 100644 --- a/canvas/source/vcl/impltools.hxx +++ b/canvas/source/vcl/impltools.hxx @@ -108,7 +108,7 @@ namespace vclcanvas } /// To be compatible with CanvasBase mutex concept - LocalGuard( const ::osl::Mutex& ) : + explicit LocalGuard( const ::osl::Mutex& ) : aSolarGuard() { } diff --git a/canvas/source/vcl/textlayout.cxx b/canvas/source/vcl/textlayout.cxx index 6cf534220e26..9e4c7124f20f 100644 --- a/canvas/source/vcl/textlayout.cxx +++ b/canvas/source/vcl/textlayout.cxx @@ -412,7 +412,7 @@ namespace vclcanvas class OffsetTransformer { public: - OffsetTransformer( const ::basegfx::B2DHomMatrix& rMat ) : + explicit OffsetTransformer( const ::basegfx::B2DHomMatrix& rMat ) : maMatrix( rMat ) { } diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 9540ed5955e9..7e2e11c328ff 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -183,7 +183,7 @@ private: OUString aDir; public: - CheckForChartName( const OUString& rDir ): + explicit CheckForChartName( const OUString& rDir ): aDir(rDir) {} bool operator()(const OUString& rName) diff --git a/chart2/source/controller/accessibility/AccStatisticsObject.hxx b/chart2/source/controller/accessibility/AccStatisticsObject.hxx index c3f94515f674..9c8fcc7fc85f 100644 --- a/chart2/source/controller/accessibility/AccStatisticsObject.hxx +++ b/chart2/source/controller/accessibility/AccStatisticsObject.hxx @@ -29,7 +29,7 @@ namespace chart class AccStatisticsObject : public AccessibleChartElement { public: - AccStatisticsObject( const AccessibleElementInfo& rAccInfo ); + explicit AccStatisticsObject( const AccessibleElementInfo& rAccInfo ); virtual ~AccStatisticsObject(); diff --git a/chart2/source/controller/chartapiwrapper/AreaWrapper.hxx b/chart2/source/controller/chartapiwrapper/AreaWrapper.hxx index 5bca1016a777..6e28ff50762a 100644 --- a/chart2/source/controller/chartapiwrapper/AreaWrapper.hxx +++ b/chart2/source/controller/chartapiwrapper/AreaWrapper.hxx @@ -47,7 +47,7 @@ class AreaWrapper : public ::cppu::ImplInheritanceHelper3< > { public: - AreaWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit AreaWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~AreaWrapper(); /// XServiceInfo declarations diff --git a/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx b/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx index 9b9e4376bce3..b315e16926f9 100644 --- a/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx +++ b/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx @@ -46,7 +46,7 @@ namespace wrapper class Chart2ModelContact { public: - Chart2ModelContact( const ::com::sun::star::uno::Reference< + explicit Chart2ModelContact( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ); virtual ~Chart2ModelContact(); diff --git a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx index 1a7c0c28b9c1..8c687ad543cb 100644 --- a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx @@ -129,7 +129,7 @@ struct lcl_Operator struct lcl_AllOperator : public lcl_Operator { - lcl_AllOperator( const Reference< XChartData >& xDataToApply ) + explicit lcl_AllOperator( const Reference< XChartData >& xDataToApply ) : lcl_Operator() , m_xDataToApply( xDataToApply ) { @@ -176,7 +176,7 @@ struct lcl_AllOperator : public lcl_Operator struct lcl_DataOperator : public lcl_Operator { - lcl_DataOperator( const Sequence< Sequence< double > >& rData ) + explicit lcl_DataOperator( const Sequence< Sequence< double > >& rData ) : lcl_Operator() , m_rData( rData ) { @@ -257,7 +257,7 @@ struct lcl_ComplexRowDescriptionsOperator : public lcl_Operator struct lcl_AnyRowDescriptionsOperator : public lcl_Operator { - lcl_AnyRowDescriptionsOperator( const Sequence< Sequence< uno::Any > >& rAnyRowDescriptions ) + explicit lcl_AnyRowDescriptionsOperator( const Sequence< Sequence< uno::Any > >& rAnyRowDescriptions ) : lcl_Operator() , m_rAnyRowDescriptions( rAnyRowDescriptions ) { @@ -343,7 +343,7 @@ struct lcl_ComplexColumnDescriptionsOperator : public lcl_Operator struct lcl_AnyColumnDescriptionsOperator : public lcl_Operator { - lcl_AnyColumnDescriptionsOperator( const Sequence< Sequence< uno::Any > >& rAnyColumnDescriptions ) + explicit lcl_AnyColumnDescriptionsOperator( const Sequence< Sequence< uno::Any > >& rAnyColumnDescriptions ) : lcl_Operator() , m_rAnyColumnDescriptions( rAnyColumnDescriptions ) { @@ -365,7 +365,7 @@ struct lcl_AnyColumnDescriptionsOperator : public lcl_Operator struct lcl_DateCategoriesOperator : public lcl_Operator { - lcl_DateCategoriesOperator( const Sequence< double >& rDates ) + explicit lcl_DateCategoriesOperator( const Sequence< double >& rDates ) : lcl_Operator() , m_rDates( rDates ) { diff --git a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.hxx b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.hxx index 23671fac3816..f1781ee4651e 100644 --- a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.hxx +++ b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.hxx @@ -48,7 +48,7 @@ class ChartDataWrapper : public MutexContainer, public com::sun::star::lang::XComponent > { public: - ChartDataWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit ChartDataWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); ChartDataWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact , const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartData >& xNewData ); virtual ~ChartDataWrapper(); diff --git a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx index 33c06dcf5b77..e2c2b3add35b 100644 --- a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx @@ -276,7 +276,7 @@ namespace wrapper class WrappedDataSourceLabelsInFirstRowProperty : public WrappedProperty { public: - WrappedDataSourceLabelsInFirstRowProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedDataSourceLabelsInFirstRowProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedDataSourceLabelsInFirstRowProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -374,7 +374,7 @@ Any WrappedDataSourceLabelsInFirstRowProperty::getPropertyDefault( const Referen class WrappedDataSourceLabelsInFirstColumnProperty : public WrappedProperty { public: - WrappedDataSourceLabelsInFirstColumnProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedDataSourceLabelsInFirstColumnProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedDataSourceLabelsInFirstColumnProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -472,7 +472,7 @@ Any WrappedDataSourceLabelsInFirstColumnProperty::getPropertyDefault( const Refe class WrappedHasLegendProperty : public WrappedProperty { public: - WrappedHasLegendProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedHasLegendProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedHasLegendProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -556,7 +556,7 @@ Any WrappedHasLegendProperty::getPropertyDefault( const Reference< beans::XPrope class WrappedHasMainTitleProperty : public WrappedProperty { public: - WrappedHasMainTitleProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedHasMainTitleProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedHasMainTitleProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -629,7 +629,7 @@ Any WrappedHasMainTitleProperty::getPropertyDefault( const Reference< beans::XPr class WrappedHasSubTitleProperty : public WrappedProperty { public: - WrappedHasSubTitleProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedHasSubTitleProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedHasSubTitleProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const diff --git a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx index f9ded24eb6a4..4c6c5b563d28 100644 --- a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx @@ -253,7 +253,7 @@ struct StaticPointWrapperPropertyArray : public rtl::StaticAggregate< Sequence< class WrappedAttachedAxisProperty : public ::chart::WrappedProperty { public: - WrappedAttachedAxisProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedAttachedAxisProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedAttachedAxisProperty(); virtual void setPropertyValue( const Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -367,7 +367,7 @@ Any WrappedSegmentOffsetProperty::convertOuterToInnerValue( const Any& rOuterVal class WrappedLineColorProperty : public WrappedSeriesAreaOrLineProperty { public: - WrappedLineColorProperty( DataSeriesPointWrapper* pDataSeriesPointWrapper ); + explicit WrappedLineColorProperty( DataSeriesPointWrapper* pDataSeriesPointWrapper ); virtual ~WrappedLineColorProperty(); virtual void setPropertyValue( const Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -428,7 +428,7 @@ Any WrappedLineColorProperty::getPropertyDefault( const Reference< beans::XPrope class WrappedLineStyleProperty : public WrappedSeriesAreaOrLineProperty { public: - WrappedLineStyleProperty( DataSeriesPointWrapper* pDataSeriesPointWrapper ); + explicit WrappedLineStyleProperty( DataSeriesPointWrapper* pDataSeriesPointWrapper ); virtual ~WrappedLineStyleProperty(); virtual void setPropertyValue( const Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const diff --git a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.hxx b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.hxx index 2206607173f1..1fff20bd0862 100644 --- a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.hxx +++ b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.hxx @@ -60,7 +60,7 @@ public: }; //this constructor needs an initialize call afterwards - DataSeriesPointWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit DataSeriesPointWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); DataSeriesPointWrapper( eType eType , sal_Int32 nSeriesIndexInNewAPI diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx index 3d9112f909aa..0f4216e83beb 100644 --- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx @@ -1203,7 +1203,7 @@ void SAL_CALL DiagramWrapper::removeEventListener( class WrappedDataRowSourceProperty : public WrappedProperty { public: - WrappedDataRowSourceProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedDataRowSourceProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedDataRowSourceProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -1417,7 +1417,7 @@ Any WrappedStackingProperty::getPropertyDefault( const Reference< beans::XProper class WrappedDim3DProperty : public WrappedProperty { public: - WrappedDim3DProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedDim3DProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedDim3DProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -1488,7 +1488,7 @@ Any WrappedDim3DProperty::getPropertyDefault( const Reference< beans::XPropertyS class WrappedVerticalProperty : public WrappedProperty { public: - WrappedVerticalProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedVerticalProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedVerticalProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -1564,7 +1564,7 @@ Any WrappedVerticalProperty::getPropertyDefault( const Reference< beans::XProper class WrappedNumberOfLinesProperty : public WrappedProperty { public: - WrappedNumberOfLinesProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedNumberOfLinesProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedNumberOfLinesProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -1718,7 +1718,7 @@ Any WrappedNumberOfLinesProperty::getPropertyDefault( const Reference< beans::XP class WrappedAttributedDataPointsProperty : public WrappedProperty { public: - WrappedAttributedDataPointsProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedAttributedDataPointsProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedAttributedDataPointsProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -1832,7 +1832,7 @@ Any WrappedAttributedDataPointsProperty::getPropertyDefault( const Reference< be class WrappedSolidTypeProperty : public WrappedProperty { public: - WrappedSolidTypeProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedSolidTypeProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedSolidTypeProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -1977,7 +1977,7 @@ Any WrappedAutomaticSizeProperty::getPropertyDefault( const Reference< beans::XP class WrappedIncludeHiddenCellsProperty : public WrappedProperty { public: - WrappedIncludeHiddenCellsProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedIncludeHiddenCellsProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedIncludeHiddenCellsProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.hxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.hxx index 0b7816053a17..36beaf05a043 100644 --- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.hxx +++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.hxx @@ -71,7 +71,7 @@ class DiagramWrapper : public cppu::ImplInheritanceHelper< > { public: - DiagramWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit DiagramWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~DiagramWrapper(); /// XServiceInfo declarations diff --git a/chart2/source/controller/chartapiwrapper/LegendWrapper.hxx b/chart2/source/controller/chartapiwrapper/LegendWrapper.hxx index 8f76007f0ad8..c0467f9277d2 100644 --- a/chart2/source/controller/chartapiwrapper/LegendWrapper.hxx +++ b/chart2/source/controller/chartapiwrapper/LegendWrapper.hxx @@ -50,7 +50,7 @@ class LegendWrapper : public ::cppu::ImplInheritanceHelper3< , public ReferenceSizePropertyProvider { public: - LegendWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit LegendWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~LegendWrapper(); /// XServiceInfo declarations diff --git a/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.hxx b/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.hxx index 33926f442e4d..7fb2f9c116be 100644 --- a/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.hxx +++ b/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.hxx @@ -55,7 +55,7 @@ class MinMaxLineWrapper : public MutexContainer > { public: - MinMaxLineWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit MinMaxLineWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~MinMaxLineWrapper(); /// XServiceInfo declarations diff --git a/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx b/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx index bf716954c16a..172c807a73d5 100644 --- a/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx @@ -51,7 +51,7 @@ namespace chart class WrappedTitleStringProperty : public WrappedProperty { public: - WrappedTitleStringProperty( const Reference< uno::XComponentContext >& xContext ); + explicit WrappedTitleStringProperty( const Reference< uno::XComponentContext >& xContext ); virtual ~WrappedTitleStringProperty(); virtual void setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& xInnerPropertySet ) const diff --git a/chart2/source/controller/chartapiwrapper/WrappedAddInProperty.hxx b/chart2/source/controller/chartapiwrapper/WrappedAddInProperty.hxx index 9d84b1fd92bb..64dfaa4f36e4 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedAddInProperty.hxx +++ b/chart2/source/controller/chartapiwrapper/WrappedAddInProperty.hxx @@ -30,7 +30,7 @@ namespace wrapper class WrappedAddInProperty : public WrappedProperty { public: - WrappedAddInProperty( ChartDocumentWrapper& rChartDocumentWrapper ); + explicit WrappedAddInProperty( ChartDocumentWrapper& rChartDocumentWrapper ); virtual ~WrappedAddInProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -46,7 +46,7 @@ private: class WrappedBaseDiagramProperty : public WrappedProperty { public: - WrappedBaseDiagramProperty( ChartDocumentWrapper& rChartDocumentWrapper ); + explicit WrappedBaseDiagramProperty( ChartDocumentWrapper& rChartDocumentWrapper ); virtual ~WrappedBaseDiagramProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -62,7 +62,7 @@ private: class WrappedAdditionalShapesProperty : public WrappedProperty { public: - WrappedAdditionalShapesProperty( ChartDocumentWrapper& rChartDocumentWrapper ); + explicit WrappedAdditionalShapesProperty( ChartDocumentWrapper& rChartDocumentWrapper ); virtual ~WrappedAdditionalShapesProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -78,7 +78,7 @@ private: class WrappedRefreshAddInAllowedProperty : public WrappedProperty { public: - WrappedRefreshAddInAllowedProperty( ChartDocumentWrapper& rChartDocumentWrapper ); + explicit WrappedRefreshAddInAllowedProperty( ChartDocumentWrapper& rChartDocumentWrapper ); virtual ~WrappedRefreshAddInAllowedProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const diff --git a/chart2/source/controller/chartapiwrapper/WrappedCharacterHeightProperty.hxx b/chart2/source/controller/chartapiwrapper/WrappedCharacterHeightProperty.hxx index 9e59aab5e0ae..ce15c5cee8a2 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedCharacterHeightProperty.hxx +++ b/chart2/source/controller/chartapiwrapper/WrappedCharacterHeightProperty.hxx @@ -59,7 +59,7 @@ protected: class WrappedCharacterHeightProperty : public WrappedCharacterHeightProperty_Base { public: - WrappedCharacterHeightProperty( ReferenceSizePropertyProvider* pRefSizePropProvider ); + explicit WrappedCharacterHeightProperty( ReferenceSizePropertyProvider* pRefSizePropProvider ); virtual ~WrappedCharacterHeightProperty(); static void addWrappedProperties( std::vector< WrappedProperty* >& rList, ReferenceSizePropertyProvider* pRefSizePropProvider ); @@ -68,14 +68,14 @@ public: class WrappedAsianCharacterHeightProperty : public WrappedCharacterHeightProperty_Base { public: - WrappedAsianCharacterHeightProperty( ReferenceSizePropertyProvider* pRefSizePropProvider ); + explicit WrappedAsianCharacterHeightProperty( ReferenceSizePropertyProvider* pRefSizePropProvider ); virtual ~WrappedAsianCharacterHeightProperty(); }; class WrappedComplexCharacterHeightProperty : public WrappedCharacterHeightProperty_Base { public: - WrappedComplexCharacterHeightProperty( ReferenceSizePropertyProvider* pRefSizePropProvider ); + explicit WrappedComplexCharacterHeightProperty( ReferenceSizePropertyProvider* pRefSizePropProvider ); virtual ~WrappedComplexCharacterHeightProperty(); }; diff --git a/chart2/source/controller/chartapiwrapper/WrappedGapwidthProperty.hxx b/chart2/source/controller/chartapiwrapper/WrappedGapwidthProperty.hxx index 54f284569126..3493bc74cd9a 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedGapwidthProperty.hxx +++ b/chart2/source/controller/chartapiwrapper/WrappedGapwidthProperty.hxx @@ -61,14 +61,14 @@ protected: class WrappedGapwidthProperty : public WrappedBarPositionProperty_Base { public: - WrappedGapwidthProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedGapwidthProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedGapwidthProperty(); }; class WrappedBarOverlapProperty : public WrappedBarPositionProperty_Base { public: - WrappedBarOverlapProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedBarOverlapProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedBarOverlapProperty(); }; diff --git a/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.hxx b/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.hxx index d721e6b3be37..7939a913abfc 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.hxx +++ b/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.hxx @@ -34,7 +34,7 @@ class WrappedLinkNumberFormatProperty; class WrappedNumberFormatProperty : public WrappedDirectStateProperty { public: - WrappedNumberFormatProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedNumberFormatProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedNumberFormatProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const @@ -54,7 +54,7 @@ private: class WrappedLinkNumberFormatProperty : public WrappedDirectStateProperty { public: - WrappedLinkNumberFormatProperty( const boost::shared_ptr<Chart2ModelContact>& pChart2ModelContact ); + explicit WrappedLinkNumberFormatProperty( const boost::shared_ptr<Chart2ModelContact>& pChart2ModelContact ); virtual ~WrappedLinkNumberFormatProperty(); virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const diff --git a/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx index 5b7c4f4cbab6..2e4d2e26b85c 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx +++ b/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx @@ -37,7 +37,7 @@ namespace wrapper class WrappedScaleTextProperty : public WrappedProperty { public: - WrappedScaleTextProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); + explicit WrappedScaleTextProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedScaleTextProperty(); virtual void setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& xInnerPropertySet ) const diff --git a/chart2/source/controller/chartapiwrapper/WrappedSceneProperty.hxx b/chart2/source/controller/chartapiwrapper/WrappedSceneProperty.hxx index f2e7cd3bd5c1..e60741db2f36 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedSceneProperty.hxx +++ b/chart2/source/controller/chartapiwrapper/WrappedSceneProperty.hxx @@ -40,7 +40,7 @@ public: class WrappedD3DTransformMatrixProperty : public WrappedProperty { public: - WrappedD3DTransformMatrixProperty( + explicit WrappedD3DTransformMatrixProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ); virtual ~WrappedD3DTransformMatrixProperty(); diff --git a/chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.hxx b/chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.hxx index 09fdb7e34d94..2f42d4ce683d 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.hxx +++ b/chart2/source/controller/chartapiwrapper/WrappedTextRotationProperty.hxx @@ -27,7 +27,7 @@ namespace chart class WrappedTextRotationProperty : public WrappedProperty { public: - WrappedTextRotationProperty( bool bDirectState=false ); + explicit WrappedTextRotationProperty( bool bDirectState=false ); virtual ~WrappedTextRotationProperty(); virtual ::com::sun::star::beans::PropertyState getPropertyState( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState >& xInnerPropertyState ) const diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx index e39213f77bf3..cf01349d2d7f 100644 --- a/chart2/source/controller/dialogs/DataBrowser.cxx +++ b/chart2/source/controller/dialogs/DataBrowser.cxx @@ -101,7 +101,7 @@ namespace impl class SeriesHeaderEdit : public Edit { public: - SeriesHeaderEdit( vcl::Window * pParent ); + explicit SeriesHeaderEdit( vcl::Window * pParent ); virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; void setStartColumn( sal_Int32 nStartColumn ); diff --git a/chart2/source/controller/dialogs/DataBrowserModel.cxx b/chart2/source/controller/dialogs/DataBrowserModel.cxx index e63151e6ee03..d967d6d79808 100644 --- a/chart2/source/controller/dialogs/DataBrowserModel.cxx +++ b/chart2/source/controller/dialogs/DataBrowserModel.cxx @@ -178,7 +178,7 @@ sal_Int32 lcl_getValuesRepresentationIndex( struct lcl_RepresentationsOfLSeqMatch : public ::std::unary_function< Reference< chart2::data::XLabeledDataSequence >, bool > { - lcl_RepresentationsOfLSeqMatch( const Reference< chart2::data::XLabeledDataSequence > & xLSeq ) : + explicit lcl_RepresentationsOfLSeqMatch( const Reference< chart2::data::XLabeledDataSequence > & xLSeq ) : m_aValuesRep( xLSeq.is() ? (xLSeq->getValues().is() ? xLSeq->getValues()->getSourceRangeRepresentation() : OUString()) : OUString() ) @@ -196,7 +196,7 @@ private: struct lcl_RolesOfLSeqMatch : public ::std::unary_function< Reference< chart2::data::XLabeledDataSequence >, bool > { - lcl_RolesOfLSeqMatch( const Reference< chart2::data::XLabeledDataSequence > & xLSeq ) : + explicit lcl_RolesOfLSeqMatch( const Reference< chart2::data::XLabeledDataSequence > & xLSeq ) : m_aRole(DataSeriesHelper::getRole(xLSeq)) {} bool operator() ( const Reference< chart2::data::XLabeledDataSequence > & xLSeq ) @@ -273,7 +273,7 @@ namespace { struct lcl_DataSeriesOfHeaderMatches : public ::std::unary_function< ::chart::DataBrowserModel::tDataHeader, bool > { - lcl_DataSeriesOfHeaderMatches( + explicit lcl_DataSeriesOfHeaderMatches( const Reference< chart2::XDataSeries > & xSeriesToCompareWith ) : m_xSeries( xSeriesToCompareWith ) {} diff --git a/chart2/source/controller/dialogs/dlg_DataSource.cxx b/chart2/source/controller/dialogs/dlg_DataSource.cxx index 046077324a52..8e5547604eb4 100644 --- a/chart2/source/controller/dialogs/dlg_DataSource.cxx +++ b/chart2/source/controller/dialogs/dlg_DataSource.cxx @@ -44,7 +44,7 @@ namespace chart class DocumentChartTypeTemplateProvider : public ChartTypeTemplateProvider { public: - DocumentChartTypeTemplateProvider( + explicit DocumentChartTypeTemplateProvider( const Reference< chart2::XChartDocument > & xDoc ); virtual ~DocumentChartTypeTemplateProvider(); @@ -84,7 +84,7 @@ Reference< chart2::XChartTypeTemplate > DocumentChartTypeTemplateProvider::getCu class DataSourceTabControl : public TabControl { public: - DataSourceTabControl(vcl::Window* pParent); + explicit DataSourceTabControl(vcl::Window* pParent); virtual bool DeactivatePage() SAL_OVERRIDE; diff --git a/chart2/source/controller/dialogs/res_BarGeometry.hxx b/chart2/source/controller/dialogs/res_BarGeometry.hxx index a14cf4a59fa7..168cd4eb7e87 100644 --- a/chart2/source/controller/dialogs/res_BarGeometry.hxx +++ b/chart2/source/controller/dialogs/res_BarGeometry.hxx @@ -29,7 +29,7 @@ namespace chart class BarGeometryResources { public: - BarGeometryResources(VclBuilderContainer* pParent); + explicit BarGeometryResources(VclBuilderContainer* pParent); void Show( bool bShow ); void Enable( bool bEnable ); diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx index b7f46f26e964..bb96e8576dd2 100644 --- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx +++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx @@ -36,7 +36,7 @@ namespace chart class LightButton : public ImageButton { public: - LightButton( vcl::Window* pParent); + explicit LightButton( vcl::Window* pParent); void switchLightOn(bool bOn); bool isLightOn() const { return m_bLightOn;} diff --git a/chart2/source/controller/dialogs/tp_ChartType.cxx b/chart2/source/controller/dialogs/tp_ChartType.cxx index 75e872c5aa0f..84b9cc2d63bb 100644 --- a/chart2/source/controller/dialogs/tp_ChartType.cxx +++ b/chart2/source/controller/dialogs/tp_ChartType.cxx @@ -45,7 +45,7 @@ using namespace ::com::sun::star::chart2; class Dim3DLookResourceGroup : public ChangingResource { public: - Dim3DLookResourceGroup(VclBuilderContainer* pWindow); + explicit Dim3DLookResourceGroup(VclBuilderContainer* pWindow); void showControls( bool bShow ); @@ -119,7 +119,7 @@ IMPL_LINK_NOARG(Dim3DLookResourceGroup, SelectSchemeHdl) class SortByXValuesResourceGroup : public ChangingResource { public: - SortByXValuesResourceGroup(VclBuilderContainer* pWindow); + explicit SortByXValuesResourceGroup(VclBuilderContainer* pWindow); void showControls( bool bShow ); @@ -165,7 +165,7 @@ IMPL_LINK_NOARG(SortByXValuesResourceGroup, SortByXValuesCheckHdl) class StackingResourceGroup : public ChangingResource { public: - StackingResourceGroup(VclBuilderContainer* pWindow); + explicit StackingResourceGroup(VclBuilderContainer* pWindow); void showControls( bool bShow, bool bShowDeepStacking ); @@ -270,7 +270,7 @@ IMPL_LINK_NOARG(StackingResourceGroup, StackingEnableHdl) class GL3DResourceGroup : public ChangingResource { public: - GL3DResourceGroup( VclBuilderContainer* pWindow ); + explicit GL3DResourceGroup( VclBuilderContainer* pWindow ); void showControls( bool bShow ); void fillControls( const ChartTypeParameter& rParam ); @@ -313,7 +313,7 @@ IMPL_LINK_NOARG( GL3DResourceGroup, SettingChangedHdl ) class SplinePropertiesDialog : public ModalDialog { public: - SplinePropertiesDialog( vcl::Window* pParent ); + explicit SplinePropertiesDialog( vcl::Window* pParent ); virtual ~SplinePropertiesDialog() { disposeOnce(); } virtual void dispose() SAL_OVERRIDE; @@ -406,7 +406,7 @@ IMPL_LINK_NOARG(SplinePropertiesDialog, SplineTypeListBoxHdl) class SteppedPropertiesDialog : public ModalDialog { public: - SteppedPropertiesDialog( vcl::Window* pParent ); + explicit SteppedPropertiesDialog( vcl::Window* pParent ); virtual ~SteppedPropertiesDialog() { disposeOnce(); } virtual void dispose() SAL_OVERRIDE; @@ -488,7 +488,7 @@ void SteppedPropertiesDialog::fillParameter( ChartTypeParameter& rParameter, boo class SplineResourceGroup : public ChangingResource { public: - SplineResourceGroup(VclBuilderContainer* pWindow); + explicit SplineResourceGroup(VclBuilderContainer* pWindow); void showControls( bool bShow ); @@ -641,7 +641,7 @@ IMPL_LINK_NOARG(SplineResourceGroup, SteppedDetailsDialogHdl) class GeometryResourceGroup : public ChangingResource { public: - GeometryResourceGroup(VclBuilderContainer* pWindow); + explicit GeometryResourceGroup(VclBuilderContainer* pWindow); void showControls( bool bShow ); diff --git a/chart2/source/controller/main/ChartController.hxx b/chart2/source/controller/main/ChartController.hxx index 88b5df52f410..1876dbda70ba 100644 --- a/chart2/source/controller/main/ChartController.hxx +++ b/chart2/source/controller/main/ChartController.hxx @@ -145,7 +145,7 @@ class ChartController : public ::cppu::WeakImplHelper12 < public: //no default constructor - ChartController(::com::sun::star::uno::Reference< + explicit ChartController(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext); virtual ~ChartController(); @@ -458,7 +458,7 @@ private: class TheModel : public RefCountable { public: - TheModel( const ::com::sun::star::uno::Reference< + explicit TheModel( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & xModel ); virtual ~TheModel(); diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx index e194016abd17..7df062fd08fe 100644 --- a/chart2/source/controller/main/ChartController_Insert.cxx +++ b/chart2/source/controller/main/ChartController_Insert.cxx @@ -70,7 +70,7 @@ namespace struct lcl_InsertMeanValueLine { public: - lcl_InsertMeanValueLine( const uno::Reference< uno::XComponentContext > & xContext ) : + explicit lcl_InsertMeanValueLine( const uno::Reference< uno::XComponentContext > & xContext ) : m_xContext( xContext ) {} diff --git a/chart2/source/controller/main/ChartFrameloader.hxx b/chart2/source/controller/main/ChartFrameloader.hxx index 360f97e01b97..db445c2d8b18 100644 --- a/chart2/source/controller/main/ChartFrameloader.hxx +++ b/chart2/source/controller/main/ChartFrameloader.hxx @@ -47,7 +47,7 @@ private: //no default constructor ChartFrameLoader(){} public: - ChartFrameLoader(::com::sun::star::uno::Reference< + explicit ChartFrameLoader(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext); virtual ~ChartFrameLoader(); diff --git a/chart2/source/controller/main/CommandDispatch.cxx b/chart2/source/controller/main/CommandDispatch.cxx index 6b060b76f9f1..4886210cce6b 100644 --- a/chart2/source/controller/main/CommandDispatch.cxx +++ b/chart2/source/controller/main/CommandDispatch.cxx @@ -36,7 +36,7 @@ template< class Map > struct lcl_DisposeAndClearAndDeleteMapElement : public ::std::unary_function< typename Map::value_type, void > { - lcl_DisposeAndClearAndDeleteMapElement( const Reference< uno::XInterface > & xEventSource ) : + explicit lcl_DisposeAndClearAndDeleteMapElement( const Reference< uno::XInterface > & xEventSource ) : m_aEvent( xEventSource ) {} void operator() ( typename Map::value_type & rElement ) diff --git a/chart2/source/controller/main/ElementSelector.hxx b/chart2/source/controller/main/ElementSelector.hxx index aa9c182cf6b2..f0eb612e2d7e 100644 --- a/chart2/source/controller/main/ElementSelector.hxx +++ b/chart2/source/controller/main/ElementSelector.hxx @@ -72,7 +72,7 @@ class ElementSelectorToolbarController : public ::svt::ToolboxController , ElementSelectorToolbarController_BASE { public: - ElementSelectorToolbarController( ::com::sun::star::uno::Reference< + explicit ElementSelectorToolbarController( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~ElementSelectorToolbarController(); diff --git a/chart2/source/controller/main/FeatureCommandDispatchBase.hxx b/chart2/source/controller/main/FeatureCommandDispatchBase.hxx index 684c78b8c09d..92344a192073 100644 --- a/chart2/source/controller/main/FeatureCommandDispatchBase.hxx +++ b/chart2/source/controller/main/FeatureCommandDispatchBase.hxx @@ -50,7 +50,7 @@ struct FeatureState class FeatureCommandDispatchBase: public CommandDispatch { public: - FeatureCommandDispatchBase( const ::com::sun::star::uno::Reference< + explicit FeatureCommandDispatchBase( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); virtual ~FeatureCommandDispatchBase(); diff --git a/chart2/source/controller/main/SelectionHelper.hxx b/chart2/source/controller/main/SelectionHelper.hxx index 48d3ea355737..e10acaafc8ea 100644 --- a/chart2/source/controller/main/SelectionHelper.hxx +++ b/chart2/source/controller/main/SelectionHelper.hxx @@ -102,7 +102,7 @@ public: , const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xChartModel ); - SelectionHelper( SdrObject* pSelectedObj ); + explicit SelectionHelper( SdrObject* pSelectedObj ); virtual ~SelectionHelper(); //MarkHandleProvider: diff --git a/chart2/source/controller/main/ShapeToolbarController.hxx b/chart2/source/controller/main/ShapeToolbarController.hxx index 8bdb1ed096d2..f067e401ccb0 100644 --- a/chart2/source/controller/main/ShapeToolbarController.hxx +++ b/chart2/source/controller/main/ShapeToolbarController.hxx @@ -53,7 +53,7 @@ class ShapeToolbarController : public ::svt::ToolboxController void operator =( const ShapeToolbarController& ) SAL_DELETED_FUNCTION; public: - ShapeToolbarController( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); + explicit ShapeToolbarController( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); virtual ~ShapeToolbarController(); // ::com::sun::star::uno::XInterface diff --git a/chart2/source/controller/main/UndoActions.hxx b/chart2/source/controller/main/UndoActions.hxx index dc8945da6228..c38bba27b4fb 100644 --- a/chart2/source/controller/main/UndoActions.hxx +++ b/chart2/source/controller/main/UndoActions.hxx @@ -94,7 +94,7 @@ class ShapeUndoElement :public ShapeUndoElement_MBase ,public ShapeUndoElement_TBase { public: - ShapeUndoElement( SdrUndoAction& i_sdrUndoAction ); + explicit ShapeUndoElement( SdrUndoAction& i_sdrUndoAction ); // XUndoAction virtual OUString SAL_CALL getTitle() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/chart2/source/controller/main/UndoGuard.hxx b/chart2/source/controller/main/UndoGuard.hxx index acf3275dd3a4..cd57908f9528 100644 --- a/chart2/source/controller/main/UndoGuard.hxx +++ b/chart2/source/controller/main/UndoGuard.hxx @@ -102,7 +102,7 @@ public: class HiddenUndoContext { public: - HiddenUndoContext( + explicit HiddenUndoContext( const ::com::sun::star::uno::Reference< ::com::sun::star::document::XUndoManager > & i_undoManager ); ~HiddenUndoContext(); diff --git a/chart2/source/model/main/Axis.hxx b/chart2/source/model/main/Axis.hxx index faefe367330f..506c60f7f229 100644 --- a/chart2/source/model/main/Axis.hxx +++ b/chart2/source/model/main/Axis.hxx @@ -54,7 +54,7 @@ class Axis : public ::property::OPropertySet { public: - Axis( ::com::sun::star::uno::Reference< + explicit Axis( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~Axis(); diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx index 2535c7506372..ce6d69c4ca39 100644 --- a/chart2/source/model/main/ChartModel_Persistence.cxx +++ b/chart2/source/model/main/ChartModel_Persistence.cxx @@ -64,7 +64,7 @@ namespace { struct lcl_PropNameEquals : public ::std::unary_function< beans::PropertyValue, bool > { - lcl_PropNameEquals( const OUString & rStrToCompareWith ) : + explicit lcl_PropNameEquals( const OUString & rStrToCompareWith ) : m_aStr( rStrToCompareWith ) {} bool operator() ( const beans::PropertyValue & rProp ) diff --git a/chart2/source/model/main/DataPoint.hxx b/chart2/source/model/main/DataPoint.hxx index d7c8e6ed1177..c123492e902b 100644 --- a/chart2/source/model/main/DataPoint.hxx +++ b/chart2/source/model/main/DataPoint.hxx @@ -51,7 +51,7 @@ class DataPoint : public ::property::OPropertySet { public: - DataPoint( const ::com::sun::star::uno::Reference< + explicit DataPoint( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & rParentProperties ); virtual ~DataPoint(); diff --git a/chart2/source/model/main/FormattedString.hxx b/chart2/source/model/main/FormattedString.hxx index a8d95a8f8d09..38c74b225cbf 100644 --- a/chart2/source/model/main/FormattedString.hxx +++ b/chart2/source/model/main/FormattedString.hxx @@ -49,7 +49,7 @@ class FormattedString : public ::property::OPropertySet { public: - FormattedString( css::uno::Reference< + explicit FormattedString( css::uno::Reference< css::uno::XComponentContext > const & xContext ); virtual ~FormattedString(); diff --git a/chart2/source/model/main/GridProperties.hxx b/chart2/source/model/main/GridProperties.hxx index d9ce4aaa2bf6..7124899637cf 100644 --- a/chart2/source/model/main/GridProperties.hxx +++ b/chart2/source/model/main/GridProperties.hxx @@ -51,7 +51,7 @@ class GridProperties : public ::property::OPropertySet { public: - GridProperties( ::com::sun::star::uno::Reference< + explicit GridProperties( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); explicit GridProperties(); virtual ~GridProperties(); diff --git a/chart2/source/model/main/Legend.hxx b/chart2/source/model/main/Legend.hxx index a5a297bab7ec..f95d906bbcb4 100644 --- a/chart2/source/model/main/Legend.hxx +++ b/chart2/source/model/main/Legend.hxx @@ -51,7 +51,7 @@ class Legend : public ::property::OPropertySet { public: - Legend( ::com::sun::star::uno::Reference< + explicit Legend( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~Legend(); diff --git a/chart2/source/model/main/PageBackground.hxx b/chart2/source/model/main/PageBackground.hxx index 1cdb8170b58d..e91011a81667 100644 --- a/chart2/source/model/main/PageBackground.hxx +++ b/chart2/source/model/main/PageBackground.hxx @@ -48,7 +48,7 @@ class PageBackground : public ::property::OPropertySet { public: - PageBackground( const ::com::sun::star::uno::Reference< + explicit PageBackground( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & xContext ); virtual ~PageBackground(); diff --git a/chart2/source/model/main/Title.hxx b/chart2/source/model/main/Title.hxx index 5d55dfe5935b..127cb31ce33c 100644 --- a/chart2/source/model/main/Title.hxx +++ b/chart2/source/model/main/Title.hxx @@ -49,7 +49,7 @@ class Title : public ::property::OPropertySet { public: - Title( ::com::sun::star::uno::Reference< + explicit Title( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~Title(); diff --git a/chart2/source/model/main/UndoManager.cxx b/chart2/source/model/main/UndoManager.cxx index 5422ad84dde4..3ee731e7060e 100644 --- a/chart2/source/model/main/UndoManager.cxx +++ b/chart2/source/model/main/UndoManager.cxx @@ -142,7 +142,7 @@ namespace chart class UndoManagerMethodGuard : public ::framework::IMutexGuard { public: - UndoManagerMethodGuard( UndoManager_Impl& i_impl ) + explicit UndoManagerMethodGuard( UndoManager_Impl& i_impl ) { ::osl::MutexGuard aGuard( i_impl.getMutex() ); // throw if the instance is already disposed diff --git a/chart2/source/model/template/AreaChartType.hxx b/chart2/source/model/template/AreaChartType.hxx index 21d17a3d2ac5..c58c84ee4517 100644 --- a/chart2/source/model/template/AreaChartType.hxx +++ b/chart2/source/model/template/AreaChartType.hxx @@ -27,7 +27,7 @@ namespace chart class AreaChartType : public ChartType { public: - AreaChartType( + explicit AreaChartType( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~AreaChartType(); diff --git a/chart2/source/model/template/BarChartType.hxx b/chart2/source/model/template/BarChartType.hxx index 5000022475dd..97ffcb3b3aba 100644 --- a/chart2/source/model/template/BarChartType.hxx +++ b/chart2/source/model/template/BarChartType.hxx @@ -27,7 +27,7 @@ namespace chart class BarChartType : public ChartType { public: - BarChartType( + explicit BarChartType( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~BarChartType(); diff --git a/chart2/source/model/template/BubbleChartType.hxx b/chart2/source/model/template/BubbleChartType.hxx index 0e8456b75183..8c6015db7ec4 100644 --- a/chart2/source/model/template/BubbleChartType.hxx +++ b/chart2/source/model/template/BubbleChartType.hxx @@ -28,7 +28,7 @@ namespace chart class BubbleChartType : public ChartType { public: - BubbleChartType( + explicit BubbleChartType( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~BubbleChartType(); diff --git a/chart2/source/model/template/CandleStickChartType.hxx b/chart2/source/model/template/CandleStickChartType.hxx index 7a5ade0bfc06..ee3c007b4a4d 100644 --- a/chart2/source/model/template/CandleStickChartType.hxx +++ b/chart2/source/model/template/CandleStickChartType.hxx @@ -27,7 +27,7 @@ namespace chart class CandleStickChartType : public ChartType { public: - CandleStickChartType( + explicit CandleStickChartType( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~CandleStickChartType(); diff --git a/chart2/source/model/template/ColumnChartType.hxx b/chart2/source/model/template/ColumnChartType.hxx index 1f35e279ccc1..97e253d6ef16 100644 --- a/chart2/source/model/template/ColumnChartType.hxx +++ b/chart2/source/model/template/ColumnChartType.hxx @@ -27,7 +27,7 @@ namespace chart class ColumnChartType : public ChartType { public: - ColumnChartType( + explicit ColumnChartType( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~ColumnChartType(); diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx index 5db7d6655344..52be707a66a9 100644 --- a/chart2/source/model/template/DataInterpreter.cxx +++ b/chart2/source/model/template/DataInterpreter.cxx @@ -221,7 +221,7 @@ namespace struct lcl_LabeledSequenceEquals : public std::unary_function< Reference< data::XLabeledDataSequence >, bool > { - lcl_LabeledSequenceEquals( const Reference< data::XLabeledDataSequence > & xLSeqToCmp ) : + explicit lcl_LabeledSequenceEquals( const Reference< data::XLabeledDataSequence > & xLSeqToCmp ) : m_bHasLabels ( false ), m_bHasValues ( false ) { diff --git a/chart2/source/model/template/FilledNetChartType.hxx b/chart2/source/model/template/FilledNetChartType.hxx index 65ce78fbd6d3..d74e6a2ee240 100644 --- a/chart2/source/model/template/FilledNetChartType.hxx +++ b/chart2/source/model/template/FilledNetChartType.hxx @@ -27,7 +27,7 @@ namespace chart class FilledNetChartType : public NetChartType_Base { public: - FilledNetChartType( ::com::sun::star::uno::Reference< + explicit FilledNetChartType( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~FilledNetChartType(); diff --git a/chart2/source/model/template/GL3DBarChartType.hxx b/chart2/source/model/template/GL3DBarChartType.hxx index 3ea07b82da6d..3a415214fee9 100644 --- a/chart2/source/model/template/GL3DBarChartType.hxx +++ b/chart2/source/model/template/GL3DBarChartType.hxx @@ -21,7 +21,7 @@ namespace chart { class GL3DBarChartType : public ChartType { public: - GL3DBarChartType( const css::uno::Reference<css::uno::XComponentContext>& xContext ); + explicit GL3DBarChartType( const css::uno::Reference<css::uno::XComponentContext>& xContext ); virtual ~GL3DBarChartType(); virtual com::sun::star::uno::Sequence< OUString > SAL_CALL diff --git a/chart2/source/model/template/LineChartType.hxx b/chart2/source/model/template/LineChartType.hxx index 1628947cf680..c6428c241025 100644 --- a/chart2/source/model/template/LineChartType.hxx +++ b/chart2/source/model/template/LineChartType.hxx @@ -28,7 +28,7 @@ namespace chart class LineChartType : public ChartType { public: - LineChartType( + explicit LineChartType( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~LineChartType(); diff --git a/chart2/source/model/template/NetChartType.hxx b/chart2/source/model/template/NetChartType.hxx index 32152edbd9f1..ac75c4c557da 100644 --- a/chart2/source/model/template/NetChartType.hxx +++ b/chart2/source/model/template/NetChartType.hxx @@ -27,7 +27,7 @@ namespace chart class NetChartType_Base : public ChartType { public: - NetChartType_Base( ::com::sun::star::uno::Reference< + explicit NetChartType_Base( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~NetChartType_Base(); @@ -55,7 +55,7 @@ protected: class NetChartType : public NetChartType_Base { public: - NetChartType( ::com::sun::star::uno::Reference< + explicit NetChartType( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext ); virtual ~NetChartType(); diff --git a/chart2/source/tools/ImplOPropertySet.cxx b/chart2/source/tools/ImplOPropertySet.cxx index c8f39c4df3e6..239a9c4bb9c0 100644 --- a/chart2/source/tools/ImplOPropertySet.cxx +++ b/chart2/source/tools/ImplOPropertySet.cxx @@ -37,7 +37,7 @@ namespace struct lcl_getPropertyStateByHandle : public ::std::unary_function< sal_Int32, beans::PropertyState > { - lcl_getPropertyStateByHandle( + explicit lcl_getPropertyStateByHandle( const ::property::impl::ImplOPropertySet::tPropertyMap & rMap ) : m_rMap( rMap ) {} @@ -57,7 +57,7 @@ template< typename K, typename V > struct lcl_eraseMapEntry : public ::std::unary_function< K, void > { - lcl_eraseMapEntry( ::std::map< K, V > & rMap ) + explicit lcl_eraseMapEntry( ::std::map< K, V > & rMap ) : m_rMap( rMap ) {} diff --git a/chart2/source/tools/ModifyListenerHelper.cxx b/chart2/source/tools/ModifyListenerHelper.cxx index c322a48b012c..f8522799c21b 100644 --- a/chart2/source/tools/ModifyListenerHelper.cxx +++ b/chart2/source/tools/ModifyListenerHelper.cxx @@ -66,7 +66,7 @@ struct lcl_weakReferenceToSame : public ::std::unary_function< ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > >, bool > { - lcl_weakReferenceToSame( const Reference< util::XModifyListener > & xModListener ) : + explicit lcl_weakReferenceToSame( const Reference< util::XModifyListener > & xModListener ) : m_xHardRef( xModListener ) {} diff --git a/chart2/source/tools/PropertyHelper.cxx b/chart2/source/tools/PropertyHelper.cxx index 365e3a374c67..de4ea2803dee 100644 --- a/chart2/source/tools/PropertyHelper.cxx +++ b/chart2/source/tools/PropertyHelper.cxx @@ -65,7 +65,7 @@ private: struct lcl_StringMatches : public ::std::unary_function< OUString ,bool > { - lcl_StringMatches( const OUString & rCmpStr ) : + explicit lcl_StringMatches( const OUString & rCmpStr ) : m_aCmpStr( rCmpStr ) {} @@ -80,7 +80,7 @@ private: struct lcl_OUStringRestToInt32 : public ::std::unary_function< OUString, sal_Int32 > { - lcl_OUStringRestToInt32( sal_Int32 nPrefixLength ) : + explicit lcl_OUStringRestToInt32( sal_Int32 nPrefixLength ) : m_nPrefixLength( nPrefixLength ) {} sal_Int32 operator() ( const OUString & rStr ) diff --git a/chart2/source/tools/XMLRangeHelper.cxx b/chart2/source/tools/XMLRangeHelper.cxx index 526499fada2e..2022d605faa8 100644 --- a/chart2/source/tools/XMLRangeHelper.cxx +++ b/chart2/source/tools/XMLRangeHelper.cxx @@ -34,7 +34,7 @@ namespace class lcl_Escape : public ::std::unary_function< sal_Unicode, void > { public: - lcl_Escape( OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {} + explicit lcl_Escape( OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {} void operator() ( sal_Unicode aChar ) { static const sal_Unicode m_aQuote( '\'' ); @@ -57,7 +57,7 @@ private: class lcl_UnEscape : public ::std::unary_function< sal_Unicode, void > { public: - lcl_UnEscape( OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {} + explicit lcl_UnEscape( OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {} void operator() ( sal_Unicode aChar ) { static const sal_Unicode m_aBackslash( '\\' ); diff --git a/chart2/source/view/axes/Tickmarks.hxx b/chart2/source/view/axes/Tickmarks.hxx index b9ecc35bd645..3be50f61f00b 100644 --- a/chart2/source/view/axes/Tickmarks.hxx +++ b/chart2/source/view/axes/Tickmarks.hxx @@ -45,7 +45,7 @@ struct TickInfo sal_Int32 nFactorForLimitedTextWidth;//categories in higher levels of complex categories can have more place than a single simple category //methods: - TickInfo( const css::uno::Reference<css::chart2::XScaling>& xInverse ); + explicit TickInfo( const css::uno::Reference<css::chart2::XScaling>& xInverse ); /** * Return a value associated with the tick mark. It's normally an original @@ -72,7 +72,7 @@ public: class PureTickIter : public TickIter { public: - PureTickIter( TickInfoArrayType& rTickInfoVector ); + explicit PureTickIter( TickInfoArrayType& rTickInfoVector ); virtual ~PureTickIter(); virtual TickInfo* firstInfo() SAL_OVERRIDE; virtual TickInfo* nextInfo() SAL_OVERRIDE; diff --git a/chart2/source/view/axes/VCartesianCoordinateSystem.cxx b/chart2/source/view/axes/VCartesianCoordinateSystem.cxx index df7d1bcef449..81e044c434e1 100644 --- a/chart2/source/view/axes/VCartesianCoordinateSystem.cxx +++ b/chart2/source/view/axes/VCartesianCoordinateSystem.cxx @@ -36,7 +36,7 @@ class TextualDataProvider : public ::cppu::WeakImplHelper1< > { public: - TextualDataProvider( const uno::Sequence< OUString >& rTextSequence ) + explicit TextualDataProvider( const uno::Sequence< OUString >& rTextSequence ) : m_aTextSequence( rTextSequence ) { } diff --git a/chart2/source/view/axes/VCartesianCoordinateSystem.hxx b/chart2/source/view/axes/VCartesianCoordinateSystem.hxx index b5a5cc4f5904..b062f38cea3f 100644 --- a/chart2/source/view/axes/VCartesianCoordinateSystem.hxx +++ b/chart2/source/view/axes/VCartesianCoordinateSystem.hxx @@ -29,7 +29,7 @@ namespace chart class VCartesianCoordinateSystem : public VCoordinateSystem { public: - VCartesianCoordinateSystem( const ::com::sun::star::uno::Reference< + explicit VCartesianCoordinateSystem( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XCoordinateSystem >& xCooSys ); virtual ~VCartesianCoordinateSystem(); diff --git a/chart2/source/view/axes/VPolarCoordinateSystem.hxx b/chart2/source/view/axes/VPolarCoordinateSystem.hxx index 135c3c19bb50..2f5de670890a 100644 --- a/chart2/source/view/axes/VPolarCoordinateSystem.hxx +++ b/chart2/source/view/axes/VPolarCoordinateSystem.hxx @@ -29,7 +29,7 @@ namespace chart class VPolarCoordinateSystem : public VCoordinateSystem { public: - VPolarCoordinateSystem( const ::com::sun::star::uno::Reference< + explicit VPolarCoordinateSystem( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XCoordinateSystem >& xCooSys ); virtual ~VPolarCoordinateSystem(); diff --git a/chart2/source/view/charttypes/BarPositionHelper.hxx b/chart2/source/view/charttypes/BarPositionHelper.hxx index 8e7fa3d739f1..b1fe0bc9245f 100644 --- a/chart2/source/view/charttypes/BarPositionHelper.hxx +++ b/chart2/source/view/charttypes/BarPositionHelper.hxx @@ -32,7 +32,7 @@ namespace chart class BarPositionHelper : public CategoryPositionHelper, public PlottingPositionHelper { public: - BarPositionHelper( bool bSwapXAndY=true ); + explicit BarPositionHelper( bool bSwapXAndY=true ); BarPositionHelper( const BarPositionHelper& rSource ); virtual ~BarPositionHelper(); diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index 5c5feb498046..5bc02d39453b 100644 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -106,7 +106,7 @@ public: class RenderThread : public salhelper::Thread { public: - RenderThread(GL3DBarChart* pChart); + explicit RenderThread(GL3DBarChart* pChart); protected: @@ -136,7 +136,7 @@ void RenderThread::renderFrame() class RenderOneFrameThread : public RenderThread { public: - RenderOneFrameThread(GL3DBarChart* pChart): + explicit RenderOneFrameThread(GL3DBarChart* pChart): RenderThread(pChart) {} @@ -194,7 +194,7 @@ void RenderAnimationThread::execute() class RenderBenchMarkThread : public RenderThread { public: - RenderBenchMarkThread(GL3DBarChart * pChart) + explicit RenderBenchMarkThread(GL3DBarChart * pChart) : RenderThread(pChart) , mbAutoFlyExecuting(false) , mbExecuting(false) diff --git a/chart2/source/view/charttypes/Splines.cxx b/chart2/source/view/charttypes/Splines.cxx index c8427a58970b..d7eae8e61059 100644 --- a/chart2/source/view/charttypes/Splines.cxx +++ b/chart2/source/view/charttypes/Splines.cxx @@ -63,7 +63,7 @@ public: @param rSortedPoints the points for which splines shall be calculated, they need to be sorted in x values. First and last y value must be equal */ - lcl_SplineCalculation( const tPointVecType & rSortedPoints); + explicit lcl_SplineCalculation( const tPointVecType & rSortedPoints); /** @descr this function corresponds to the function splint in [1]. diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index 52e75964b1ff..3bed8aeb1201 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -1992,7 +1992,7 @@ namespace { struct lcl_setRefSizeAtSeriesGroup : public ::std::unary_function< VDataSeriesGroup, void > { - lcl_setRefSizeAtSeriesGroup( awt::Size aRefSize ) : m_aRefSize( aRefSize ) {} + explicit lcl_setRefSizeAtSeriesGroup( awt::Size aRefSize ) : m_aRefSize( aRefSize ) {} void operator()( VDataSeriesGroup & rGroup ) { ::std::vector< VDataSeries* >::iterator aIt( rGroup.m_aSeriesVector.begin()); diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index b95b5ab8fbc4..c8ca5c51ce31 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -258,7 +258,7 @@ typedef boost::ptr_vector<VSeriesPlotter> SeriesPlottersType; class SeriesPlotterContainer { public: - SeriesPlotterContainer( std::vector< VCoordinateSystem* >& rVCooSysList ); + explicit SeriesPlotterContainer( std::vector< VCoordinateSystem* >& rVCooSysList ); ~SeriesPlotterContainer(); /** It is used to set coordinate systems (`m_rVCooSysList`), this method @@ -1077,7 +1077,7 @@ struct CreateShapeParam2D class GL2DRenderer : public IRenderer { public: - GL2DRenderer(ChartView* pView); + explicit GL2DRenderer(ChartView* pView); virtual ~GL2DRenderer(); virtual void update() SAL_OVERRIDE; diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index eec97ff3395d..80856f610291 100644 --- a/chart2/source/view/main/DummyXShape.cxx +++ b/chart2/source/view/main/DummyXShape.cxx @@ -81,7 +81,7 @@ class DummyPropertySetInfo : public cppu::WeakImplHelper1< com::sun::star::beans::XPropertySetInfo > { public: - DummyPropertySetInfo(const std::map<OUString, uno::Any>& rProps ): + explicit DummyPropertySetInfo(const std::map<OUString, uno::Any>& rProps ): mrProperties(rProps) {} virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& rName ) @@ -764,7 +764,7 @@ namespace { struct FontAttribSetter { - FontAttribSetter(vcl::Font& rFont): + explicit FontAttribSetter(vcl::Font& rFont): mrFont(rFont) {} void operator()(const std::pair<OUString, uno::Any>& rProp) diff --git a/chart2/source/view/main/DummyXShape.hxx b/chart2/source/view/main/DummyXShape.hxx index fd97dff16031..3467d2381ede 100644 --- a/chart2/source/view/main/DummyXShape.hxx +++ b/chart2/source/view/main/DummyXShape.hxx @@ -251,7 +251,7 @@ private: class DummyArea3D : public DummyXShape { public: - DummyArea3D(const css::drawing::PolyPolygonShape3D& rShape); + explicit DummyArea3D(const css::drawing::PolyPolygonShape3D& rShape); private: css::drawing::PolyPolygonShape3D maShapes; @@ -260,7 +260,7 @@ private: class DummyArea2D : public DummyXShape { public: - DummyArea2D(const css::drawing::PointSequenceSequence& rShape); + explicit DummyArea2D(const css::drawing::PointSequenceSequence& rShape); virtual void render() SAL_OVERRIDE; @@ -324,7 +324,7 @@ class DummyRectangle : public DummyXShape { public: DummyRectangle(); - DummyRectangle(const css::awt::Size& rSize); + explicit DummyRectangle(const css::awt::Size& rSize); DummyRectangle(const css::awt::Size& rSize, const css::awt::Point& rPoint, const tNameSequence& rNames, const tAnySequence& rValues ); @@ -413,7 +413,7 @@ public: class DummyGroup2D : public DummyXShapes { public: - DummyGroup2D(const OUString& rName); + explicit DummyGroup2D(const OUString& rName); virtual ::com::sun::star::awt::Point SAL_CALL getPosition() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::com::sun::star::awt::Size SAL_CALL getSize() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; @@ -424,7 +424,7 @@ public: class DummyGroup3D : public DummyXShapes { public: - DummyGroup3D(const OUString& rName); + explicit DummyGroup3D(const OUString& rName); }; } diff --git a/chart2/source/view/main/VTitle.hxx b/chart2/source/view/main/VTitle.hxx index 78fd5c936520..66d34b09d461 100644 --- a/chart2/source/view/main/VTitle.hxx +++ b/chart2/source/view/main/VTitle.hxx @@ -32,7 +32,7 @@ namespace chart class VTitle { public: - VTitle( const ::com::sun::star::uno::Reference< + explicit VTitle( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XTitle > & xTitle ); virtual ~VTitle(); diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index bbbd45ede5e2..a9a9ce3ce7c5 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -385,7 +385,7 @@ namespace { struct DoesStyleMatchStyleSheetPredicate SAL_FINAL : public svl::StyleSheetPredicate { - DoesStyleMatchStyleSheetPredicate(SfxStyleSheetIterator *it) + explicit DoesStyleMatchStyleSheetPredicate(SfxStyleSheetIterator *it) : mIterator(it) {;} bool @@ -717,7 +717,7 @@ SfxStyleSheetBasePool& SfxStyleSheetBasePool::operator=( const SfxStyleSheetBase namespace { struct AddStyleSheetCallback : svl::StyleSheetCallback { - AddStyleSheetCallback(SfxStyleSheetBasePool *pool) + explicit AddStyleSheetCallback(SfxStyleSheetBasePool *pool) : mPool(pool) {;} void DoIt(const SfxStyleSheetBase& ssheet) SAL_OVERRIDE @@ -820,7 +820,7 @@ namespace struct StyleSheetDisposerFunctor SAL_FINAL : public svl::StyleSheetDisposer { - StyleSheetDisposerFunctor(SfxStyleSheetBasePool* pool) + explicit StyleSheetDisposerFunctor(SfxStyleSheetBasePool* pool) : mPool(pool) {;} void diff --git a/svl/source/misc/sharedstringpool.cxx b/svl/source/misc/sharedstringpool.cxx index e1dfe94453fd..bb9be8c7b7eb 100644 --- a/svl/source/misc/sharedstringpool.cxx +++ b/svl/source/misc/sharedstringpool.cxx @@ -57,7 +57,7 @@ struct SharedStringPool::Impl StrStoreType maStrStore; const CharClass* mpCharClass; - Impl( const CharClass* pCharClass ) : mpCharClass(pCharClass) {} + explicit Impl( const CharClass* pCharClass ) : mpCharClass(pCharClass) {} }; SharedStringPool::SharedStringPool( const CharClass* pCharClass ) : diff --git a/svl/source/numbers/numuno.cxx b/svl/source/numbers/numuno.cxx index efcdc2af0bb2..4bfb4a4282b4 100644 --- a/svl/source/numbers/numuno.cxx +++ b/svl/source/numbers/numuno.cxx @@ -33,7 +33,7 @@ public: SvNumberFormatter* pFormatter; mutable ::comphelper::SharedMutex aMutex; - SvNumFmtSuppl_Impl(SvNumberFormatter* p) : + explicit SvNumFmtSuppl_Impl(SvNumberFormatter* p) : pFormatter(p) {} }; diff --git a/svl/source/numbers/supservs.hxx b/svl/source/numbers/supservs.hxx index da04e95e1e70..9051abbb7e58 100644 --- a/svl/source/numbers/supservs.hxx +++ b/svl/source/numbers/supservs.hxx @@ -43,7 +43,7 @@ protected: m_xORB; public: - SvNumberFormatsSupplierServiceObject(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB); + explicit SvNumberFormatsSupplierServiceObject(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB); virtual ~SvNumberFormatsSupplierServiceObject(); // XInterface diff --git a/svl/source/numbers/zforfind.hxx b/svl/source/numbers/zforfind.hxx index c9f260a37c42..3e34b50b9a0a 100644 --- a/svl/source/numbers/zforfind.hxx +++ b/svl/source/numbers/zforfind.hxx @@ -32,7 +32,7 @@ class SvNumberFormatter; class ImpSvNumberInputScan { public: - ImpSvNumberInputScan( SvNumberFormatter* pFormatter ); + explicit ImpSvNumberInputScan( SvNumberFormatter* pFormatter ); ~ImpSvNumberInputScan(); /*!*/ void ChangeIntl(); // MUST be called if language changes diff --git a/svl/source/numbers/zforscan.hxx b/svl/source/numbers/zforscan.hxx index 03d5efa5db33..9e8816b8c628 100644 --- a/svl/source/numbers/zforscan.hxx +++ b/svl/source/numbers/zforscan.hxx @@ -40,7 +40,7 @@ class ImpSvNumberformatScan { public: - ImpSvNumberformatScan( SvNumberFormatter* pFormatter ); + explicit ImpSvNumberformatScan( SvNumberFormatter* pFormatter ); ~ImpSvNumberformatScan(); void ChangeIntl(); // Replaces Keywords diff --git a/svl/source/passwordcontainer/syscreds.hxx b/svl/source/passwordcontainer/syscreds.hxx index 45574dae96af..f21744cccd6b 100644 --- a/svl/source/passwordcontainer/syscreds.hxx +++ b/svl/source/passwordcontainer/syscreds.hxx @@ -32,7 +32,7 @@ class SysCredentialsConfig; class SysCredentialsConfigItem : public utl::ConfigItem { public: - SysCredentialsConfigItem( SysCredentialsConfig * pOwner ); + explicit SysCredentialsConfigItem( SysCredentialsConfig * pOwner ); //virtual ~SysCredentialsConfigItem(); virtual void Notify( diff --git a/svl/source/svdde/ddesvr.cxx b/svl/source/svdde/ddesvr.cxx index 923222b7b9a1..b5a9960f00bf 100644 --- a/svl/source/svdde/ddesvr.cxx +++ b/svl/source/svdde/ddesvr.cxx @@ -39,7 +39,7 @@ struct DdeItemImpData sal_uLong nHCnv; sal_uInt16 nCnt; - DdeItemImpData( sal_uLong nH ) : nHCnv( nH ), nCnt( 1 ) {} + expliit DdeItemImpData( sal_uLong nH ) : nHCnv( nH ), nCnt( 1 ) {} }; class DdeItemImp { diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 0d967f86f24e..a6f75bf02085 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -150,7 +150,7 @@ struct MarkedUndoAction SfxUndoAction* pAction; ::std::vector< UndoStackMark > aMarks; - MarkedUndoAction( SfxUndoAction* i_action ) + explicit MarkedUndoAction( SfxUndoAction* i_action ) :pAction( i_action ) ,aMarks() { @@ -239,7 +239,7 @@ struct SVL_DLLPRIVATE SfxUndoManager_Data UndoListeners aListeners; - SfxUndoManager_Data( size_t i_nMaxUndoActionCount ) + explicit SfxUndoManager_Data( size_t i_nMaxUndoActionCount ) :pUndoArray( new SfxUndoArray( i_nMaxUndoActionCount ) ) ,pActUndoArray( NULL ) ,pFatherUndoArray( NULL ) @@ -264,7 +264,7 @@ namespace svl { namespace undo { namespace impl class SVL_DLLPRIVATE LockGuard { public: - LockGuard( SfxUndoManager& i_manager ) + explicit LockGuard( SfxUndoManager& i_manager ) :m_manager( i_manager ) { m_manager.ImplEnableUndo_Lock( false ); @@ -284,7 +284,7 @@ namespace svl { namespace undo { namespace impl struct SVL_DLLPRIVATE NotifyUndoListener : public ::std::unary_function< SfxUndoListener*, void > { - NotifyUndoListener( UndoListenerVoidMethod i_notificationMethod ) + explicit NotifyUndoListener( UndoListenerVoidMethod i_notificationMethod ) :m_notificationMethod( i_notificationMethod ) ,m_altNotificationMethod( NULL ) ,m_sActionComment() @@ -325,7 +325,7 @@ namespace svl { namespace undo { namespace impl class SVL_DLLPRIVATE UndoManagerGuard { public: - UndoManagerGuard( SfxUndoManager_Data& i_managerData ) + explicit UndoManagerGuard( SfxUndoManager_Data& i_managerData ) :m_rManagerData( i_managerData ) ,m_aGuard( i_managerData.aMutex ) ,m_notifiers() diff --git a/svtools/source/contnr/treelistentry.cxx b/svtools/source/contnr/treelistentry.cxx index e479b430de8c..a80752cdd1ed 100644 --- a/svtools/source/contnr/treelistentry.cxx +++ b/svtools/source/contnr/treelistentry.cxx @@ -174,7 +174,7 @@ class FindByType : std::unary_function<SvLBoxItem, void> { sal_uInt16 mnId; public: - FindByType(sal_uInt16 nId) : mnId(nId) {} + explicit FindByType(sal_uInt16 nId) : mnId(nId) {} bool operator() (const SvLBoxItem& rItem) const { return rItem.GetType() == mnId; |