[Libreoffice-commits] core.git: include/vcl vcl/source

Stephan Bergmann sbergman at redhat.com
Thu Oct 20 11:00:25 UTC 2016


 include/vcl/fixedhyper.hxx        |    2 +-
 vcl/source/control/fixedhyper.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b441b2013e638314bc9fdb78b0f29575efe51f78
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Oct 20 12:59:44 2016 +0200

    loplugin:staticmethods
    
    Change-Id: I439747c98fcdadb59e68756e8b3ae2e305c960cb

diff --git a/include/vcl/fixedhyper.hxx b/include/vcl/fixedhyper.hxx
index 98b5e15..dea9b3c 100644
--- a/include/vcl/fixedhyper.hxx
+++ b/include/vcl/fixedhyper.hxx
@@ -40,7 +40,7 @@ class VCL_DLLPUBLIC FixedHyperlink : public FixedText
         /** is position X position hitting text */
         SAL_DLLPRIVATE bool ImplIsOverText(Point rPosition);
 
-        DECL_LINK(HandleClick, FixedHyperlink&, void);
+        DECL_STATIC_LINK(FixedHyperlink, HandleClick, FixedHyperlink&, void);
 
     protected:
         /** overwrites Window::MouseMove().
diff --git a/vcl/source/control/fixedhyper.cxx b/vcl/source/control/fixedhyper.cxx
index 51a12f6..8cfff96 100644
--- a/vcl/source/control/fixedhyper.cxx
+++ b/vcl/source/control/fixedhyper.cxx
@@ -149,7 +149,7 @@ bool FixedHyperlink::set_property(const OString &rKey, const OString &rValue)
     return true;
 }
 
-IMPL_LINK(FixedHyperlink, HandleClick, FixedHyperlink&, rHyperlink, void)
+IMPL_STATIC_LINK(FixedHyperlink, HandleClick, FixedHyperlink&, rHyperlink, void)
 {
     if ( rHyperlink.m_sURL.isEmpty() ) // Nothing to do, when the URL is empty
         return;


More information about the Libreoffice-commits mailing list