summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-05-28 09:55:09 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-05-28 15:10:19 +0200
commit0753aa966eba18ddf0534abd21ff92edcfdb7982 (patch)
treedc7e613691ae2eb0256c0417081757ca17659b9f /sw
parentc0593719836f6969262c7ed798ee9e528cf03e4b (diff)
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/textboxhelper.hxx7
1 files changed, 4 insertions, 3 deletions
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>