From 8dba09031bac4744f489bfa23be3c669640b0c93 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Tue, 17 Sep 2024 09:35:57 +0200 Subject: [PATCH] sc: use SAL_RET_MAYBENULL() in GetViewBindings Change-Id: I67e3e7921869a22d2bf6ce713fd581a9c3881aa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173521 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sc/inc/document.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index f5f2c3487c75..43a08fcdc7b0 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1173,7 +1173,7 @@ public: @return true = DDE link found and matrix set. */ bool SetDdeLinkResultMatrix( size_t nDdePos, const ScMatrixRef& pResults ); - SfxBindings* GetViewBindings(); + SAL_RET_MAYBENULL SfxBindings* GetViewBindings(); ScDocShell* GetDocumentShell() const { return mpShell; } SC_DLLPUBLIC ScDrawLayer* GetDrawLayer() { return mpDrawLayer.get(); } SC_DLLPUBLIC const ScDrawLayer* GetDrawLayer() const { return mpDrawLayer.get(); }