sw/source/uibase/inc/navipi.hxx   |    2 +-
 sw/source/uibase/uiview/view0.cxx |    3 ++-
 sw/source/uibase/utlui/navipi.cxx |    2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 4b2f775d8df83db84d1b0d568827d81a46c7112b
Author:     Sahil Gautam <sahil.gau...@collabora.com>
AuthorDate: Tue Aug 5 16:17:29 2025 +0530
Commit:     Sahil Gautam <sahil.gau...@collabora.com>
CommitDate: Wed Aug 6 14:16:14 2025 +0200

    don't use the SLOT_ID directly, rather get it from a static getter
    
    + also mention the SLOT_ID for easier grepability
    
    Change-Id: I91a4e148bccd31529c374edd64bac43db96f21bf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188948
    Tested-by: Jenkins
    Reviewed-by: Sahil Gautam <sahil.gau...@collabora.com>

diff --git a/sw/source/uibase/inc/navipi.hxx b/sw/source/uibase/inc/navipi.hxx
index b72d6de2099f..a266da2f9868 100644
--- a/sw/source/uibase/inc/navipi.hxx
+++ b/sw/source/uibase/inc/navipi.hxx
@@ -170,7 +170,7 @@ class SwNavigatorWrapper final : public SfxNavigatorWrapper
 public:
     SwNavigatorWrapper(vcl::Window *pParent, sal_uInt16 nId,
                        SfxBindings* pBindings, SfxChildWinInfo* pInfo);
-    SFX_DECL_CHILDWINDOW(SwNavigatorWrapper);
+    SFX_DECL_CHILDWINDOW_WITHID(SwNavigatorWrapper);
 };
 
 #endif
diff --git a/sw/source/uibase/uiview/view0.cxx 
b/sw/source/uibase/uiview/view0.cxx
index f931a7387da1..ce383783b428 100644
--- a/sw/source/uibase/uiview/view0.cxx
+++ b/sw/source/uibase/uiview/view0.cxx
@@ -21,6 +21,7 @@
 #include <config_wasm_strip.h>
 
 #include <SwSpellDialogChildWindow.hxx>
+#include <navipi.hxx>
 #include <svl/eitem.hxx>
 #include <unotools/configmgr.hxx>
 #include <unotools/linguprops.hxx>
@@ -90,7 +91,7 @@ SFX_IMPL_INTERFACE(SwView, SfxViewShell)
 
 void SwView::InitInterface_Impl()
 {
-    GetStaticInterface()->RegisterChildWindow(SID_NAVIGATOR, true);
+    
GetStaticInterface()->RegisterChildWindow(SwNavigatorWrapper::GetChildWindowId(),
 true); // SID_NAVIGATOR
 
     
GetStaticInterface()->RegisterChildWindow(::sfx2::sidebar::SidebarChildWindow::GetChildWindowId());
 
diff --git a/sw/source/uibase/utlui/navipi.cxx 
b/sw/source/uibase/utlui/navipi.cxx
index 85bbb1eb56d9..26a49f3cb774 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -1302,7 +1302,7 @@ void SwNavigatorWin::StateChanged(StateChangedType 
nStateChange)
         m_xNavi->UpdateInitShow();
 }
 
-SFX_IMPL_DOCKINGWINDOW(SwNavigatorWrapper, SID_NAVIGATOR);
+SFX_IMPL_DOCKINGWINDOW_WITHID(SwNavigatorWrapper, SID_NAVIGATOR);
 
 SwNavigatorWrapper::SwNavigatorWrapper(vcl::Window *_pParent, sal_uInt16 nId,
                                        SfxBindings* pBindings, 
SfxChildWinInfo* pInfo)

Reply via email to