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(); }