diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 09:51:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 08:41:38 +0000 |
commit | 1a743fd8a27d063525e3567619a2971770c61574 (patch) | |
tree | 0bbb838762285342beab2711e867ff695a05a7b7 /i18npool | |
parent | bc57a3e319bccb2d48549a3134d5dcd4336d4533 (diff) |
loplugin:expandablemethods in hwpfilter..linguistic
Change-Id: I62ae20ab4a47b3b7e2b0d503cedcad3319cc9c85
Reviewed-on: https://gerrit.libreoffice.org/30683
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/inc/defaultnumberingprovider.hxx | 1 | ||||
-rw-r--r-- | i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx | 9 |
2 files changed, 2 insertions, 8 deletions
diff --git a/i18npool/inc/defaultnumberingprovider.hxx b/i18npool/inc/defaultnumberingprovider.hxx index d65ef5e6c29a..5140a553ef6b 100644 --- a/i18npool/inc/defaultnumberingprovider.hxx +++ b/i18npool/inc/defaultnumberingprovider.hxx @@ -39,7 +39,6 @@ class DefaultNumberingProvider : public cppu::WeakImplHelper css::lang::XServiceInfo > { - void impl_loadTranslit(); public: DefaultNumberingProvider( const css::uno::Reference < css::uno::XComponentContext >& rxContext ); diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx index fe5bf48a6a16..a8ec5b2c4425 100644 --- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx +++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx @@ -271,12 +271,6 @@ DefaultNumberingProvider::~DefaultNumberingProvider() delete translit; } -void DefaultNumberingProvider::impl_loadTranslit() -{ - if ( !translit ) - translit = new TransliterationImpl(m_xContext); -} - Sequence< Reference<container::XIndexAccess> > DefaultNumberingProvider::getDefaultOutlineNumberings(const Locale& rLocale ) throw(RuntimeException, std::exception) { @@ -647,7 +641,8 @@ DefaultNumberingProvider::makeNumberingString( const Sequence<beans::PropertyVal const OUString &tmp = OUString::number( number ); OUString transliteration; getPropertyByName(aProperties, "Transliteration", true) >>= transliteration; - impl_loadTranslit(); + if ( !translit ) + translit = new TransliterationImpl(m_xContext); translit->loadModuleByImplName(transliteration, aLocale); result += translit->transliterateString2String(tmp, 0, tmp.getLength()); } catch (Exception& ) { |