sw/inc/textboxhelper.hxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 0753aa966eba18ddf0534abd21ff92edcfdb7982
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Tue May 28 09:55:09 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue May 28 15:10:19 2024 +0200

    sw: use SAL_RET_MAYBENULL in getOtherTextBoxFormat()
    
    Change-Id: I854f0d2f38fc9c6b3f8afc4b05d42fbc26e76bc2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168138
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx
index c4f4c3d8fbbb..4afd6fa9960c 100644
--- a/sw/inc/textboxhelper.hxx
+++ b/sw/inc/textboxhelper.hxx
@@ -122,10 +122,11 @@ public:
      *
      * @see isTextBox
      */
-    static SwFrameFormat* getOtherTextBoxFormat(const SwFrameFormat* pFormat, 
sal_uInt16 nType,
-                                                const SdrObject* pObject = 
nullptr);
+    SAL_RET_MAYBENULL static SwFrameFormat*
+    getOtherTextBoxFormat(const SwFrameFormat* pFormat, sal_uInt16 nType,
+                          const SdrObject* pObject = nullptr);
     /// If we have an associated TextFrame, then return that.
-    static SwFrameFormat*
+    SAL_RET_MAYBENULL static SwFrameFormat*
     getOtherTextBoxFormat(css::uno::Reference<css::drawing::XShape> const& 
xShape);
     /// If we have an associated TextFrame, then return its XTextFrame.
     static css::uno::Reference<css::text::XTextFrame>

Reply via email to