svx/source/sidebar/text/TextUnderlineControl.cxx | 6 +++++- svx/source/sidebar/text/TextUnderlineControl.hxx | 1 - 2 files changed, 5 insertions(+), 2 deletions(-)
New commits: commit d8d768a0bc06d154a24fffe400e4e9f5534adc3b Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed May 4 12:13:15 2016 +0200 loplugin:staticmethods Change-Id: I4b9dc149f5b2a18df0cab91e7706be14d584cf8f diff --git a/svx/source/sidebar/text/TextUnderlineControl.cxx b/svx/source/sidebar/text/TextUnderlineControl.cxx index 1405d1d..1f2416c 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 8ff75b5..a28a212 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); }; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits