From 8ef4dc07cd4413253b5747dd714fadd548d6bcf6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Mar 2024 19:12:56 +0200 Subject: improve loplugin:staticmethods Some of the exclusions were too aggressive. Restrict them to only the important classes, which exposes some more places this plugin applies. Change-Id: I1b2d1fb24391adc71ed0984f94168f61a149479f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165154 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/config/asiancfg.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'svl/source/config') diff --git a/svl/source/config/asiancfg.cxx b/svl/source/config/asiancfg.cxx index a8f4e08e519d..d1515f6e76f7 100644 --- a/svl/source/config/asiancfg.cxx +++ b/svl/source/config/asiancfg.cxx @@ -71,7 +71,8 @@ void SvxAsianConfig::Commit() { impl_->batch->commit(); } -bool SvxAsianConfig::IsKerningWesternTextOnly() const { +// static +bool SvxAsianConfig::IsKerningWesternTextOnly() { return officecfg::Office::Common::AsianLayout::IsKerningWesternTextOnly::get(); } @@ -81,7 +82,8 @@ void SvxAsianConfig::SetKerningWesternTextOnly(bool value) { value, impl_->batch); } -CharCompressType SvxAsianConfig::GetCharDistanceCompression() const { +// static +CharCompressType SvxAsianConfig::GetCharDistanceCompression() { return static_cast(officecfg::Office::Common::AsianLayout::CompressCharacterDistance::get()); } @@ -90,8 +92,8 @@ void SvxAsianConfig::SetCharDistanceCompression(CharCompressType value) { static_cast(value), impl_->batch); } +// static css::uno::Sequence< css::lang::Locale > SvxAsianConfig::GetStartEndCharLocales() - const { const css::uno::Sequence< OUString > ns( officecfg::Office::Common::AsianLayout::StartEndCharacters::get()-> @@ -103,9 +105,10 @@ css::uno::Sequence< css::lang::Locale > SvxAsianConfig::GetStartEndCharLocales() return ls; } +// static bool SvxAsianConfig::GetStartEndChars( css::lang::Locale const & locale, OUString & startChars, - OUString & endChars) const + OUString & endChars) { css::uno::Reference< css::container::XNameAccess > set( officecfg::Office::Common::AsianLayout::StartEndCharacters::get()); -- cgit llabora/cd-5.3-3.2'>distro/collabora/cd-5.3-3.2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author