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

Stephan Bergmann sbergman at redhat.com
Wed Jul 8 00:39:59 PDT 2015


 cui/source/customize/cfg.cxx |    5 +----
 cui/source/inc/cfg.hxx       |    2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

New commits:
commit d29aeee806991a1439697c255b95db111230e262
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jul 8 09:39:27 2015 +0200

    loplugin:staticmethods
    
    Change-Id: I8eb65173d7bf71a829b8c1d8451dbbc7d81a8d38

diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 2481d48..8e9f094 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -4749,7 +4749,6 @@ SvxNewToolbarDialog::SvxNewToolbarDialog(vcl::Window* pWindow, const OUString& r
     get(m_pSaveInListBox, "savein");
     m_pEdtName->SetText( rName );
     m_pEdtName->SetSelection(Selection(SELECTION_MIN, SELECTION_MAX));
-    ModifyHdl(m_pEdtName);
     m_pEdtName->SetModifyHdl(LINK(this, SvxNewToolbarDialog, ModifyHdl));
 }
 
@@ -4767,10 +4766,8 @@ void SvxNewToolbarDialog::dispose()
 }
 
 
-IMPL_LINK(SvxNewToolbarDialog, ModifyHdl, Edit*, pEdit)
+IMPL_STATIC_LINK_NOARG(SvxNewToolbarDialog, ModifyHdl)
 {
-    (void)pEdit;
-
     return 0;
 }
 
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx
index 6a0a9ca..206c083 100644
--- a/cui/source/inc/cfg.hxx
+++ b/cui/source/inc/cfg.hxx
@@ -666,7 +666,7 @@ private:
     VclPtr<Edit>           m_pEdtName;
     VclPtr<OKButton>       m_pBtnOK;
 
-    DECL_LINK(ModifyHdl, Edit*);
+    DECL_STATIC_LINK(SvxNewToolbarDialog, ModifyHdl, void *);
 
 public:
     SvxNewToolbarDialog(vcl::Window* pWindow, const OUString& rName);


More information about the Libreoffice-commits mailing list