diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-10 13:29:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-10 13:29:27 +0100 |
commit | c78c0441a2e7f1b2b6a08d6174f8427907781d82 (patch) | |
tree | 559185b6f8218a5a71af4c1467891f2d68cb0dee /linguistic | |
parent | 80fbd731d8b8b101a10466a4d16d4867e9de968b (diff) |
cppcheck: noExplicitConstructor
Change-Id: I0081113bf312287fe6e14749a569709ee892d8dd
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/convdiclist.hxx | 2 | ||||
-rw-r--r-- | linguistic/source/convdicxml.hxx | 2 | ||||
-rw-r--r-- | linguistic/source/defs.hxx | 12 | ||||
-rw-r--r-- | linguistic/source/dicimp.cxx | 5 | ||||
-rw-r--r-- | linguistic/source/dlistimp.cxx | 2 | ||||
-rw-r--r-- | linguistic/source/dlistimp.hxx | 2 | ||||
-rw-r--r-- | linguistic/source/hyphdsp.hxx | 2 | ||||
-rw-r--r-- | linguistic/source/spelldsp.hxx | 2 |
8 files changed, 14 insertions, 15 deletions
diff --git a/linguistic/source/convdiclist.hxx b/linguistic/source/convdiclist.hxx index c6076996aace..f9e4cf383b63 100644 --- a/linguistic/source/convdiclist.hxx +++ b/linguistic/source/convdiclist.hxx @@ -47,7 +47,7 @@ class ConvDicList : ConvDicList & rMyDicList; public: - MyAppExitListener( ConvDicList &rDicList ) : rMyDicList( rDicList ) {} + explicit MyAppExitListener( ConvDicList &rDicList ) : rMyDicList( rDicList ) {} virtual void AtExit() SAL_OVERRIDE; }; diff --git a/linguistic/source/convdicxml.hxx b/linguistic/source/convdicxml.hxx index 8e04adfa4b1b..4276aa569c07 100644 --- a/linguistic/source/convdicxml.hxx +++ b/linguistic/source/convdicxml.hxx @@ -83,7 +83,7 @@ class ConvDicXMLImport : public SvXMLImport public: //!! see comment for pDic member - ConvDicXMLImport( ConvDic *pConvDic ) : + explicit ConvDicXMLImport( ConvDic *pConvDic ) : SvXMLImport ( comphelper::getProcessComponentContext(), "com.sun.star.lingu2.ConvDicXMLImport", SvXMLImportFlags::ALL ), pDic ( pConvDic ) { diff --git a/linguistic/source/defs.hxx b/linguistic/source/defs.hxx index c7ecb736f163..b6eca651d4f8 100644 --- a/linguistic/source/defs.hxx +++ b/linguistic/source/defs.hxx @@ -43,13 +43,13 @@ struct LangSvcEntries LangSvcEntries() : nLastTriedSvcIndex(-1), bAlreadyWarned(false), bDoWarnAgain(false) {} - inline LangSvcEntries( const css::uno::Sequence< OUString > &rSvcImplNames ) : + explicit LangSvcEntries( const css::uno::Sequence< OUString > &rSvcImplNames ) : aSvcImplNames(rSvcImplNames), nLastTriedSvcIndex(-1), bAlreadyWarned(false), bDoWarnAgain(false) { } - inline LangSvcEntries( const OUString &rSvcImplName ) : + explicit LangSvcEntries( const OUString &rSvcImplName ) : nLastTriedSvcIndex(-1), bAlreadyWarned(false), bDoWarnAgain(false) { aSvcImplNames.realloc(1); @@ -75,7 +75,7 @@ struct LangSvcEntries_Spell : public LangSvcEntries css::uno::Sequence< css::uno::Reference< css::linguistic2::XSpellChecker > > aSvcRefs; LangSvcEntries_Spell() : LangSvcEntries() {} - LangSvcEntries_Spell( const css::uno::Sequence< OUString > &rSvcImplNames ) : LangSvcEntries( rSvcImplNames ) {} + explicit LangSvcEntries_Spell( const css::uno::Sequence< OUString > &rSvcImplNames ) : LangSvcEntries( rSvcImplNames ) {} }; struct LangSvcEntries_Grammar : public LangSvcEntries @@ -83,7 +83,7 @@ struct LangSvcEntries_Grammar : public LangSvcEntries css::uno::Sequence< css::uno::Reference< css::linguistic2::XProofreader > > aSvcRefs; LangSvcEntries_Grammar() : LangSvcEntries() {} - LangSvcEntries_Grammar( const OUString &rSvcImplName ) : LangSvcEntries( rSvcImplName ) {} + explicit LangSvcEntries_Grammar( const OUString &rSvcImplName ) : LangSvcEntries( rSvcImplName ) {} }; struct LangSvcEntries_Hyph : public LangSvcEntries @@ -91,7 +91,7 @@ struct LangSvcEntries_Hyph : public LangSvcEntries css::uno::Sequence< css::uno::Reference< css::linguistic2::XHyphenator > > aSvcRefs; LangSvcEntries_Hyph() : LangSvcEntries() {} - LangSvcEntries_Hyph( const OUString &rSvcImplName ) : LangSvcEntries( rSvcImplName ) {} + explicit LangSvcEntries_Hyph( const OUString &rSvcImplName ) : LangSvcEntries( rSvcImplName ) {} }; struct LangSvcEntries_Thes : public LangSvcEntries @@ -99,7 +99,7 @@ struct LangSvcEntries_Thes : public LangSvcEntries css::uno::Sequence< css::uno::Reference< css::linguistic2::XThesaurus > > aSvcRefs; LangSvcEntries_Thes() : LangSvcEntries() {} - LangSvcEntries_Thes( const css::uno::Sequence< OUString > &rSvcImplNames ) : LangSvcEntries( rSvcImplNames ) {} + explicit LangSvcEntries_Thes( const css::uno::Sequence< OUString > &rSvcImplNames ) : LangSvcEntries( rSvcImplNames ) {} }; diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 983af78a7148..f79af0186006 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -331,11 +331,10 @@ sal_uLong DictionaryNeo::loadEntries(const OUString &rMainURL) } else if (DIC_VERSION_7 == nDicVersion) { - bool bSuccess; OString aLine; // remaining lines - stock strings (a [==] b) - while ((bSuccess = pStream->ReadLine(aLine))) + while (pStream->ReadLine(aLine)) { if (aLine[0] == '#') // skip comments continue; @@ -385,7 +384,7 @@ struct TmpDictionary } catch (const uno::Exception &) { } } - TmpDictionary(const OUString &rURL) + explicit TmpDictionary(const OUString &rURL) : maURL( rURL ) { maTmpURL = maURL + ".tmp"; diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index 9231a18cbb1b..5a4f46570b54 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -74,7 +74,7 @@ class DicEvtListenerHelper : nNumVerboseListeners; public: - DicEvtListenerHelper( const uno::Reference< XDictionaryList > &rxDicList ); + explicit DicEvtListenerHelper( const uno::Reference< XDictionaryList > &rxDicList ); virtual ~DicEvtListenerHelper(); // XEventListener diff --git a/linguistic/source/dlistimp.hxx b/linguistic/source/dlistimp.hxx index 8456191b94ac..dd4869d068db 100644 --- a/linguistic/source/dlistimp.hxx +++ b/linguistic/source/dlistimp.hxx @@ -49,7 +49,7 @@ class DicList : DicList & rMyDicList; public: - MyAppExitListener( DicList &rDicList ) : rMyDicList( rDicList ) {} + explicit MyAppExitListener( DicList &rDicList ) : rMyDicList( rDicList ) {} virtual void AtExit() SAL_OVERRIDE; }; diff --git a/linguistic/source/hyphdsp.hxx b/linguistic/source/hyphdsp.hxx index 80981fcc688e..1c32f8341ce2 100644 --- a/linguistic/source/hyphdsp.hxx +++ b/linguistic/source/hyphdsp.hxx @@ -86,7 +86,7 @@ class HyphenatorDispatcher : sal_Int16 nLanguage ); public: - HyphenatorDispatcher( LngSvcMgr &rLngSvcMgr ); + explicit HyphenatorDispatcher( LngSvcMgr &rLngSvcMgr ); virtual ~HyphenatorDispatcher(); // XSupportedLocales diff --git a/linguistic/source/spelldsp.hxx b/linguistic/source/spelldsp.hxx index c57382b2fd3f..3e2985e525db 100644 --- a/linguistic/source/spelldsp.hxx +++ b/linguistic/source/spelldsp.hxx @@ -94,7 +94,7 @@ class SpellCheckerDispatcher : throw( ::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IllegalArgumentException ); public: - SpellCheckerDispatcher( LngSvcMgr &rLngSvcMgr ); + explicit SpellCheckerDispatcher( LngSvcMgr &rLngSvcMgr ); virtual ~SpellCheckerDispatcher(); // XSupportedLocales (for XSpellChecker) |