diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-23 15:44:39 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-23 20:28:22 +0200 |
commit | b46b0e92e54d871af8c2f2471c991c5d243a089d (patch) | |
tree | ad784788263d68cee9fe37743b44f30fb204c699 /sc/source/ui/inc | |
parent | 4ebf7f55cee69386353185372dabb406031d74da (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/docsh.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |