diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2023-10-03 13:21:36 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-10-03 15:07:40 +0200 |
commit | 2ecd4c009293f127ac09e5f4184330c4337cee49 (patch) | |
tree | 791943e926d80258c0137bf6015ce377ce75190b /sfx2 | |
parent | 63a5c6350f8930774c651a9cf41521606ecb6a94 (diff) |
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 <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/workwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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!"); } |