sc/source/ui/inc/docsh.hxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit b46b0e92e54d871af8c2f2471c991c5d243a089d
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu May 23 15:44:39 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu May 23 20:28:22 2024 +0200

    use SAL_RET_MAYBENULL in GetViewBindings(), GetBestViewShell()...
    
    ... GetViewData() and GetShellByNum()
    
    Change-Id: I9a53e2d4cf1241195985cf095d274f596abd6427
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167993
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx
index 4cc4ceacfb11..0b82b85ea3e9 100644
--- a/sc/source/ui/inc/docsh.hxx
+++ b/sc/source/ui/inc/docsh.hxx
@@ -378,9 +378,9 @@ public:
 
     const OUString& GetDdeTextFmt() const { return m_aDdeTextFmt; }
 
-    SfxBindings*    GetViewBindings();
+    SAL_RET_MAYBENULL SfxBindings* GetViewBindings();
 
-    SC_DLLPUBLIC ScTabViewShell* GetBestViewShell( bool bOnlyVisible = true );
+    SAL_RET_MAYBENULL SC_DLLPUBLIC ScTabViewShell* GetBestViewShell( bool 
bOnlyVisible = true );
 
     void            SetDocumentModifiedPending( bool bVal )
                         { m_bDocumentModifiedPending = bVal; }
@@ -397,10 +397,10 @@ public:
 
     OutputDevice*   GetRefDevice(); // WYSIWYG: Printer, otherwise 
VirtualDevice...
 
-    SC_DLLPUBLIC static ScViewData* GetViewData();
+    SAL_RET_MAYBENULL SC_DLLPUBLIC static ScViewData* GetViewData();
     SC_DLLPUBLIC static SCTAB       GetCurTab();
 
-    static ScDocShell* GetShellByNum( sal_uInt16 nDocNo );
+    SAL_RET_MAYBENULL static ScDocShell* GetShellByNum( sal_uInt16 nDocNo );
     static OUString   GetOwnFilterName();
     static OUString   GetHtmlFilterName();
     static OUString   GetWebQueryFilterName();

Reply via email to