sfx2/source/appl/workwin.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2ecd4c009293f127ac09e5f4184330c4337cee49
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Tue Oct 3 13:21:36 2023 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Tue Oct 3 15:07:40 2023 +0200

    sfx2: fix gcc dbgutil -Werror=unused-variable
    
    /home/vmiklos/git/libreoffice/master/sfx2/source/appl/workwin.cxx: In 
member function ‘void SfxWorkWindow::ToggleChildWindow_Impl(sal_uInt16, bool)’:
    /home/vmiklos/git/libreoffice/master/sfx2/source/appl/workwin.cxx:1861:27: 
error: unused variable ‘pCW’ [-Werror=unused-variable]
     1861 |     if (SfxChildWin_Impl* pCW = Get_BySaveId(aChildWins, nId))
          |                           ^~~
    /home/vmiklos/git/libreoffice/master/sfx2/source/appl/workwin.cxx: In 
member function ‘void SfxWorkWindow::ShowChildWindow_Impl(sal_uInt16, bool, 
bool)’:
    /home/vmiklos/git/libreoffice/master/sfx2/source/appl/workwin.cxx:1990:27: 
error: unused variable ‘pCW’ [-Werror=unused-variable]
     1990 |     if (SfxChildWin_Impl* pCW = Get_BySaveId(aChildWins, nId))
          |                           ^~~
    
    Change-Id: Iecc60032459ca8a6543f3836f17b76b25939cda9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157516
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index 9a4de102bb88..aadc401a8ee1 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -1858,7 +1858,7 @@ void SfxWorkWindow::ToggleChildWindow_Impl(sal_uInt16 
nId, bool bSetFocus)
     }
 
 #ifdef DBG_UTIL
-    if (SfxChildWin_Impl* pCW = Get_BySaveId(aChildWins, nId))
+    if (Get_BySaveId(aChildWins, nId))
     {
         OSL_FAIL("The ChildWindow is not in context!");
     }
@@ -1987,7 +1987,7 @@ void SfxWorkWindow::ShowChildWindow_Impl(sal_uInt16 nId, 
bool bVisible, bool bSe
     }
 
 #ifdef DBG_UTIL
-    if (SfxChildWin_Impl* pCW = Get_BySaveId(aChildWins, nId))
+    if (Get_BySaveId(aChildWins, nId))
     {
         OSL_FAIL("The ChildWindow is not in context!");
     }

Reply via email to