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

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 18 12:27:45 UTC 2019


 compilerplugins/clang/virtualdead.unusedparams.results |    3 ---
 svx/source/form/fmtextcontrolshell.cxx                 |    4 ++--
 svx/source/inc/fmtextcontrolshell.hxx                  |    4 ++--
 3 files changed, 4 insertions(+), 7 deletions(-)

New commits:
commit a4e9ba26d794ee20d06753eb4c4d35b17e034470
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Oct 17 14:33:34 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Oct 18 14:26:33 2019 +0200

    loplugin:virtualdead unused param in contextMenuRequested
    
    Change-Id: Ifc13a476da29966a2a0023226967201ecc97b444
    Reviewed-on: https://gerrit.libreoffice.org/81017
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/compilerplugins/clang/virtualdead.unusedparams.results b/compilerplugins/clang/virtualdead.unusedparams.results
index 5ed7e9cabee5..a112391a9538 100644
--- a/compilerplugins/clang/virtualdead.unusedparams.results
+++ b/compilerplugins/clang/virtualdead.unusedparams.results
@@ -304,9 +304,6 @@ slideshow/source/inc/shapelistenereventhandler.hxx:54
 starmath/source/wordexportbase.hxx:37
     void SmWordExportBase::HandleText(const class SmNode *,int,)
     10
-svx/source/inc/fmtextcontrolshell.hxx:69
-    void svx::IContextRequestObserver::contextMenuRequested(const struct com::sun::star::awt::MouseEvent &,)
-    0
 sw/inc/calbck.hxx:144
     void SwClient::Modify(const class SfxPoolItem *const,const class SfxPoolItem *const,)
     10
diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx
index 53de54235b4f..6b8e42bfe340 100644
--- a/svx/source/form/fmtextcontrolshell.cxx
+++ b/svx/source/form/fmtextcontrolshell.cxx
@@ -315,7 +315,7 @@ namespace svx
         if ( _rEvent.PopupTrigger )
         {
             if ( m_pObserver )
-                m_pObserver->contextMenuRequested( _rEvent );
+                m_pObserver->contextMenuRequested();
         }
     }
 
@@ -1308,7 +1308,7 @@ namespace svx
     }
 
 
-    void FmTextControlShell::contextMenuRequested( const css::awt::MouseEvent& /*_rEvent*/ )
+    void FmTextControlShell::contextMenuRequested()
     {
         m_rBindings.GetDispatcher()->ExecutePopup( "formrichtext" );
     }
diff --git a/svx/source/inc/fmtextcontrolshell.hxx b/svx/source/inc/fmtextcontrolshell.hxx
index 5856c64cd4a5..9512ef097f1b 100644
--- a/svx/source/inc/fmtextcontrolshell.hxx
+++ b/svx/source/inc/fmtextcontrolshell.hxx
@@ -66,7 +66,7 @@ namespace svx
     class IContextRequestObserver
     {
     public:
-        virtual void    contextMenuRequested( const css::awt::MouseEvent& _rEvent ) = 0;
+        virtual void    contextMenuRequested() = 0;
 
     protected:
         ~IContextRequestObserver() {}
@@ -142,7 +142,7 @@ namespace svx
         virtual void    focusLost( const css::awt::FocusEvent& _rEvent ) override;
 
         // IContextRequestObserver
-        virtual void    contextMenuRequested( const css::awt::MouseEvent& _rEvent ) override;
+        virtual void    contextMenuRequested() override;
 
         enum AttributeSet { eCharAttribs, eParaAttribs };
         void    executeAttributeDialog( AttributeSet _eSet, SfxRequest& _rReq );


More information about the Libreoffice-commits mailing list