[Libreoffice-commits] core.git: svx/source

Stephan Bergmann sbergman at redhat.com
Wed May 4 10:13:40 UTC 2016


 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 <sbergman at 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);
 };


More information about the Libreoffice-commits mailing list