vcl/inc/unx/gtk/gtkdata.hxx |    2 +-
 vcl/unx/gtk3/gtkdata.cxx    |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 92d2f61c6c8b92ed914cea40e5e2fb81fb962800
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Mon Jun 30 22:41:28 2025 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Tue Jul 1 06:54:19 2025 +0200

    gtk: Use GtkSalFrame param instead of casting
    
    Change-Id: If2ae1144ad438c2e4c4d484a62a54af9570c1655
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187217
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>
    Tested-by: Jenkins

diff --git a/vcl/inc/unx/gtk/gtkdata.hxx b/vcl/inc/unx/gtk/gtkdata.hxx
index e7e326536dde..98134aa20f13 100644
--- a/vcl/inc/unx/gtk/gtkdata.hxx
+++ b/vcl/inc/unx/gtk/gtkdata.hxx
@@ -270,7 +270,7 @@ public:
 
     virtual void deregisterFrame( SalFrame* pFrame ) override;
     GdkCursor *getCursor( PointerStyle ePointerStyle );
-    int CaptureMouse( SalFrame* pFrame );
+    int CaptureMouse(GtkSalFrame* pFrame);
 
     SalX11Screen GetDefaultXScreen() { return 
m_pSys->GetDisplayDefaultXScreen(); }
     AbsoluteScreenPixelSize GetScreenSize( int nDisplayScreen );
diff --git a/vcl/unx/gtk3/gtkdata.cxx b/vcl/unx/gtk3/gtkdata.cxx
index 2f71818296c5..a135b7be8a99 100644
--- a/vcl/unx/gtk3/gtkdata.cxx
+++ b/vcl/unx/gtk3/gtkdata.cxx
@@ -302,10 +302,8 @@ GdkCursor *GtkSalDisplay::getCursor( PointerStyle 
ePointerStyle )
     return m_aCursors[ ePointerStyle ];
 }
 
-int GtkSalDisplay::CaptureMouse( SalFrame* pSFrame )
+int GtkSalDisplay::CaptureMouse(GtkSalFrame* pFrame)
 {
-    GtkSalFrame* pFrame = static_cast<GtkSalFrame*>(pSFrame);
-
     if( !pFrame )
     {
         if( m_pCapture )

Reply via email to