sw/inc/docsh.hxx                  |    3 ++-
 sw/source/uibase/app/docshini.cxx |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit dae818cf81763dedad573c86b352f1cfedcfeb64
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed Nov 8 09:27:02 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Nov 9 06:25:25 2023 +0100

    loplugin:fieldcast in SwDocShell
    
    Change-Id: I81739c24ae1174ff9f889490b8152dda7b61f328
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159171
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx
index 301ba4748fd1..3cbc43c98803 100644
--- a/sw/inc/docsh.hxx
+++ b/sw/inc/docsh.hxx
@@ -52,6 +52,7 @@ class IDocumentChartDataProviderAccess;
 class SwDocShell;
 class SwDrawModel;
 class SwViewShell;
+class SwDocStyleSheetPool;
 namespace svt
 {
 class EmbeddedObjectRef;
@@ -69,7 +70,7 @@ class SW_DLLPUBLIC SwDocShell
     , public SfxListener
 {
     rtl::Reference< SwDoc >                 m_xDoc;      ///< Document.
-    rtl::Reference< SfxStyleSheetBasePool > m_xBasePool; ///< Passing through 
for formats.
+    rtl::Reference< SwDocStyleSheetPool > m_xBasePool; ///< Passing through 
for formats.
     std::unique_ptr<FontList> m_pFontList;          ///< Current Fontlist.
     bool        m_IsInUpdateFontList; ///< prevent nested calls of 
UpdateFontList
 
diff --git a/sw/source/uibase/app/docshini.cxx 
b/sw/source/uibase/app/docshini.cxx
index 2dbe6095a554..6d3cf42a7858 100644
--- a/sw/source/uibase/app/docshini.cxx
+++ b/sw/source/uibase/app/docshini.cxx
@@ -436,7 +436,7 @@ void SwDocShell::RemoveLink()
     {
         if (m_xBasePool.is())
         {
-            static_cast<SwDocStyleSheetPool*>(m_xBasePool.get())->dispose();
+            m_xBasePool->dispose();
             m_xBasePool.clear();
         }
         m_xDoc->SetOle2Link(Link<bool,void>());

Reply via email to