summaryrefslogtreecommitdiff
path: root/svx/source/sidebar
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-04 12:13:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-04 12:13:15 +0200
commitd8d768a0bc06d154a24fffe400e4e9f5534adc3b (patch)
tree4e3d3490d5bf03bee3ba3240c2c4ce2c40348ba9 /svx/source/sidebar
parent9144a54a7612aa75cf58e857ddd4913f8bac6965 (diff)
loplugin:staticmethods
Change-Id: I4b9dc149f5b2a18df0cab91e7706be14d584cf8f
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r--svx/source/sidebar/text/TextUnderlineControl.cxx6
-rw-r--r--svx/source/sidebar/text/TextUnderlineControl.hxx1
2 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/sidebar/text/TextUnderlineControl.cxx b/svx/source/sidebar/text/TextUnderlineControl.cxx
index 1405d1d3a153..1f2416c6e9e6 100644
--- a/svx/source/sidebar/text/TextUnderlineControl.cxx
+++ b/svx/source/sidebar/text/TextUnderlineControl.cxx
@@ -110,7 +110,9 @@ FontLineStyle TextUnderlineControl::getLineStyle(Button* pButton)
return LINESTYLE_NONE;
}
-Color TextUnderlineControl::GetUnderlineColor()
+namespace {
+
+Color GetUnderlineColor()
{
const SfxPoolItem* pItem;
SfxViewFrame::Current()->GetBindings().GetDispatcher()->QueryState(SID_ATTR_CHAR_UNDERLINE, pItem);
@@ -123,6 +125,8 @@ Color TextUnderlineControl::GetUnderlineColor()
return COL_AUTO;
}
+}
+
IMPL_LINK_TYPED(TextUnderlineControl, PBClickHdl, Button*, pButton, void)
{
if(pButton == maMoreOptions)
diff --git a/svx/source/sidebar/text/TextUnderlineControl.hxx b/svx/source/sidebar/text/TextUnderlineControl.hxx
index 8ff75b5585af..a28a212e41ed 100644
--- a/svx/source/sidebar/text/TextUnderlineControl.hxx
+++ b/svx/source/sidebar/text/TextUnderlineControl.hxx
@@ -51,7 +51,6 @@ private:
VclPtr<PushButton> maMoreOptions;
FontLineStyle getLineStyle(Button* pButton);
- Color GetUnderlineColor();
DECL_LINK_TYPED(PBClickHdl, Button*, void);
};