diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-02 09:52:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-02 10:16:38 +0000 |
commit | 4ea0390faa22037f1d4f703c0882a027cf2ae643 (patch) | |
tree | cbcc7db6e327ef0efa53d26241fc48f0ff2ee90f /scaddins | |
parent | 708d1c5ab242b545ced598879233fc662d7e6cc0 (diff) |
cppcheck: noExplicitConstructor
Change-Id: I06186e8f0bbc8522f538e8639a68e816093becc2
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysis.cxx | 2 | ||||
-rw-r--r-- | scaddins/source/analysis/analysis.hxx | 2 | ||||
-rw-r--r-- | scaddins/source/analysis/analysishelper.hxx | 4 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.hxx | 6 | ||||
-rw-r--r-- | scaddins/source/pricing/pricing.hxx | 6 |
5 files changed, 10 insertions, 10 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index 3cc9fe9832fd..04988972edbd 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -86,7 +86,7 @@ OUString AnalysisAddIn::GetDisplFuncStr( sal_uInt16 nFuncNum ) throw( uno::Runti class AnalysisResourcePublisher : public Resource { public: - AnalysisResourcePublisher( const AnalysisResId& rId ) : Resource( rId ) {} + explicit AnalysisResourcePublisher( const AnalysisResId& rId ) : Resource( rId ) {} bool IsAvailableRes( const ResId& rId ) const { return Resource::IsAvailableRes( rId ); } void FreeResource() { Resource::FreeResource(); } }; diff --git a/scaddins/source/analysis/analysis.hxx b/scaddins/source/analysis/analysis.hxx index 1a38489f8366..ae2b0de6d839 100644 --- a/scaddins/source/analysis/analysis.hxx +++ b/scaddins/source/analysis/analysis.hxx @@ -75,7 +75,7 @@ private: throw( css::uno::RuntimeException, css::lang::IllegalArgumentException ); public: - AnalysisAddIn( + explicit AnalysisAddIn( const css::uno::Reference< css::uno::XComponentContext >& xContext ); virtual ~AnalysisAddIn(); diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx index 0fcd1f4bdf34..05894af37883 100644 --- a/scaddins/source/analysis/analysishelper.hxx +++ b/scaddins/source/analysis/analysishelper.hxx @@ -367,7 +367,7 @@ class Complex public: inline Complex( double fReal, double fImag = 0.0, sal_Unicode cC = '\0' ); - Complex( const OUString& rComplexAsString ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException ); + explicit Complex( const OUString& rComplexAsString ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException ); inline static bool IsImagUnit( sal_Unicode c ); static bool ParseString( const OUString& rComplexAsString, Complex& rReturn ); @@ -787,7 +787,7 @@ private: throw( css::lang::IllegalArgumentException ); public: - ScaAnyConverter( + explicit ScaAnyConverter( const css::uno::Reference< css::uno::XComponentContext >& xContext ); ~ScaAnyConverter(); diff --git a/scaddins/source/datefunc/datefunc.hxx b/scaddins/source/datefunc/datefunc.hxx index 6b0fb538eaf6..2fbf06f9d962 100644 --- a/scaddins/source/datefunc/datefunc.hxx +++ b/scaddins/source/datefunc/datefunc.hxx @@ -88,11 +88,11 @@ inline ScaResStringArrLoader::ScaResStringArrLoader( sal_uInt16 nResId, sal_uInt class ScaResPublisher : public Resource { public: - inline ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {} + explicit ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {} - inline bool IsAvailableRes( const ResId& rResId ) const + bool IsAvailableRes( const ResId& rResId ) const { return Resource::IsAvailableRes( rResId ); } - inline void FreeResource() + void FreeResource() { Resource::FreeResource(); } }; diff --git a/scaddins/source/pricing/pricing.hxx b/scaddins/source/pricing/pricing.hxx index 91e739a8c172..685a7f7e2db6 100644 --- a/scaddins/source/pricing/pricing.hxx +++ b/scaddins/source/pricing/pricing.hxx @@ -98,11 +98,11 @@ inline ScaResStringArrLoader::ScaResStringArrLoader( sal_uInt16 nResId, sal_uInt class ScaResPublisher : public Resource { public: - inline ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {} + explicit ScaResPublisher( const ScaResId& rResId ) : Resource( rResId ) {} - inline bool IsAvailableRes( const ResId& rResId ) const + bool IsAvailableRes( const ResId& rResId ) const { return Resource::IsAvailableRes( rResId ); } - inline void FreeResource() + void FreeResource() { Resource::FreeResource(); } }; |