summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-15 08:54:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-15 11:20:02 +0100
commit5b51b98b668925f955d50d0fe796762ee05eb487 (patch)
tree7f534edd3dcb35272e697f5626476668caec9349 /svx
parent843fa5ff69f2bc502a6fa35878104d067b2a1e77 (diff)
loplugin:staticmethods in vcl
Change-Id: I00333677db711761510a35dfae5ce70d61fb9491 Reviewed-on: https://gerrit.libreoffice.org/63397 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/SvxColorValueSet.cxx4
-rw-r--r--svx/source/xoutdev/xtabdash.cxx2
-rw-r--r--svx/source/xoutdev/xtablend.cxx2
3 files changed, 3 insertions, 5 deletions
diff --git a/svx/source/tbxctrls/SvxColorValueSet.cxx b/svx/source/tbxctrls/SvxColorValueSet.cxx
index ef7a6c5393b6..fed3bb9c50f9 100644
--- a/svx/source/tbxctrls/SvxColorValueSet.cxx
+++ b/svx/source/tbxctrls/SvxColorValueSet.cxx
@@ -39,9 +39,7 @@ VCL_BUILDER_FACTORY_CONSTRUCTOR(SvxColorValueSet, WB_TABSTOP)
sal_uInt32 SvxColorValueSet::getMaxRowCount()
{
- const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
-
- return rStyleSettings.GetColorValueSetMaximumRowCount();
+ return StyleSettings::GetColorValueSetMaximumRowCount();
}
sal_uInt32 SvxColorValueSet::getEntryEdgeLength()
diff --git a/svx/source/xoutdev/xtabdash.cxx b/svx/source/xoutdev/xtabdash.cxx
index 2b890ca5b198..9efd16a141fd 100644
--- a/svx/source/xoutdev/xtabdash.cxx
+++ b/svx/source/xoutdev/xtabdash.cxx
@@ -90,7 +90,7 @@ BitmapEx XDashList::ImpCreateBitmapForXDash(const XDash* pDash)
// prepare LineAttribute
const basegfx::BColor aLineColor(rStyleSettings.GetFieldTextColor().getBColor());
- const double fLineWidth(rStyleSettings.GetListBoxPreviewDefaultLineWidth() * (nFactor * 1.1));
+ const double fLineWidth(StyleSettings::GetListBoxPreviewDefaultLineWidth() * (nFactor * 1.1));
const drawinglayer::attribute::LineAttribute aLineAttribute(
aLineColor,
fLineWidth);
diff --git a/svx/source/xoutdev/xtablend.cxx b/svx/source/xoutdev/xtablend.cxx
index e70016af4149..bc254322ce06 100644
--- a/svx/source/xoutdev/xtablend.cxx
+++ b/svx/source/xoutdev/xtablend.cxx
@@ -100,7 +100,7 @@ BitmapEx XLineEndList::CreateBitmapForUI( long nIndex )
// prepare LineAttribute
const basegfx::BColor aLineColor(rStyleSettings.GetFieldTextColor().getBColor());
- const double fLineWidth(rStyleSettings.GetListBoxPreviewDefaultLineWidth() * 1.1);
+ const double fLineWidth(StyleSettings::GetListBoxPreviewDefaultLineWidth() * 1.1);
const drawinglayer::attribute::LineAttribute aLineAttribute(
aLineColor,
fLineWidth);