From e87c08babed9e3ac34908771fc95cab5386f01a2 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 19 Aug 2015 10:23:16 +0900 Subject: lingucomponent: tdf#88206 replace cppu::WeakImplHelper* with the variadic variants. Change-Id: Ibe00b26512a4895a603a084f4e816c74b99894df Reviewed-on: https://gerrit.libreoffice.org/17850 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx | 5 ++--- lingucomponent/source/languageguessing/guesslang.cxx | 4 ++-- lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx | 5 ++--- lingucomponent/source/spellcheck/spell/sspellimp.hxx | 5 ++--- lingucomponent/source/thesaurus/libnth/nthesdta.hxx | 4 ++-- lingucomponent/source/thesaurus/libnth/nthesimp.hxx | 5 ++--- 6 files changed, 12 insertions(+), 16 deletions(-) diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx index ad5db821655a..d7bb068ce831 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx @@ -20,8 +20,7 @@ #ifndef INCLUDED_LINGUCOMPONENT_SOURCE_HYPHENATOR_HYPHEN_HYPHENIMP_HXX #define INCLUDED_LINGUCOMPONENT_SOURCE_HYPHENATOR_HYPHEN_HYPHENIMP_HXX -#include -#include +#include #include #include #include @@ -56,7 +55,7 @@ struct HDInfo { }; class Hyphenator : - public cppu::WeakImplHelper6 + public cppu::WeakImplHelper < XHyphenator, XLinguServiceEventBroadcaster, diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx index 9c848cd6ec93..2b2da0e0e544 100644 --- a/lingucomponent/source/languageguessing/guesslang.cxx +++ b/lingucomponent/source/languageguessing/guesslang.cxx @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include @@ -74,7 +74,7 @@ static osl::Mutex & GetLangGuessMutex() } class LangGuess_Impl : - public ::cppu::WeakImplHelper2< + public ::cppu::WeakImplHelper< XLanguageGuessing, XServiceInfo >, private boost::noncopyable diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx b/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx index df566a8cdbd7..5a53fd388a06 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx @@ -20,8 +20,7 @@ #ifndef INCLUDED_LINGUCOMPONENT_SOURCE_SPELLCHECK_MACOSXSPELL_MACSPELLIMP_HXX #define INCLUDED_LINGUCOMPONENT_SOURCE_SPELLCHECK_MACOSXSPELL_MACSPELLIMP_HXX -#include -#include +#include #ifdef MACOSX #include @@ -50,7 +49,7 @@ using namespace ::com::sun::star::lang; using namespace ::com::sun::star::linguistic2; class MacSpellChecker : - public cppu::WeakImplHelper6 + public cppu::WeakImplHelper < XSpellChecker, XLinguServiceEventBroadcaster, diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.hxx b/lingucomponent/source/spellcheck/spell/sspellimp.hxx index 097471b0381e..ffbff58c59d9 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.hxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.hxx @@ -20,8 +20,7 @@ #ifndef INCLUDED_LINGUCOMPONENT_SOURCE_SPELLCHECK_SPELL_SSPELLIMP_HXX #define INCLUDED_LINGUCOMPONENT_SOURCE_SPELLCHECK_SPELL_SSPELLIMP_HXX -#include -#include +#include #include #include #include @@ -45,7 +44,7 @@ using namespace ::com::sun::star::linguistic2; class Hunspell; class SpellChecker : - public cppu::WeakImplHelper6 + public cppu::WeakImplHelper < XSpellChecker, XLinguServiceEventBroadcaster, diff --git a/lingucomponent/source/thesaurus/libnth/nthesdta.hxx b/lingucomponent/source/thesaurus/libnth/nthesdta.hxx index 9e676e21244e..28e2f2f3da8a 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesdta.hxx +++ b/lingucomponent/source/thesaurus/libnth/nthesdta.hxx @@ -21,13 +21,13 @@ #define INCLUDED_LINGUCOMPONENT_SOURCE_THESAURUS_LIBNTH_NTHESDTA_HXX #include -#include +#include namespace linguistic { class Meaning : - public cppu::WeakImplHelper1 + public cppu::WeakImplHelper < ::com::sun::star::linguistic2::XMeaning > diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx index 87ab6dd1a30b..f88dc2897072 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx @@ -20,8 +20,7 @@ #ifndef INCLUDED_LINGUCOMPONENT_SOURCE_THESAURUS_LIBNTH_NTHESIMP_HXX #define INCLUDED_LINGUCOMPONENT_SOURCE_THESAURUS_LIBNTH_NTHESIMP_HXX -#include -#include +#include #include #include #include @@ -56,7 +55,7 @@ namespace com { namespace sun { namespace star { namespace beans { }}}} class Thesaurus : - public cppu::WeakImplHelper5 + public cppu::WeakImplHelper < XThesaurus, XInitialization, -- cgit