summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-05-20 14:22:40 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-05-23 15:53:15 +0200
commit693b21954581c608b7ef456c799ecbd3f46b9918 (patch)
treea5afeaba2219a15153828aa0ec3b81d96c550616 /sw
parentb9f9493b43f89ad1560e9779796ade7854aa2b74 (diff)
use SAL_RET_MAYBENULL in GetActiveWrtShell(), GetActiveView()...
... GetFirstView() and GetNextView() after 25b38765d6e500af196ce312a3e1d819c6a7d09c "check GetActiveWrtShell() and CheckAndGetWrtShell()" and 74f398bb58510087cc4a11bb2253715771a2c6b2 "sw: check GetActiveView()" Change-Id: I0840309a28e2fb54a5abd386ceeddb21006d9368 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167866 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/swmodule.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx
index 2e5687171955..cfaef237b2c3 100644
--- a/sw/inc/swmodule.hxx
+++ b/sw/inc/swmodule.hxx
@@ -176,8 +176,8 @@ public:
SvtUserOptions& GetUserOptions();
// Iterate over views.
- static SwView* GetFirstView();
- static SwView* GetNextView(SwView const *);
+ SAL_RET_MAYBENULL static SwView* GetFirstView();
+ SAL_RET_MAYBENULL static SwView* GetNextView(SwView const *);
bool IsEmbeddedLoadSave() const { return m_bEmbeddedLoadSave; }
void SetEmbeddedLoadSave( bool bFlag ) { m_bEmbeddedLoadSave = bFlag; }
@@ -251,8 +251,8 @@ public:
#define SW_MOD() ( static_cast<SwModule*>(SfxApplication::GetModule(SfxToolsModule::Writer)))
-SW_DLLPUBLIC SwView* GetActiveView();
-SW_DLLPUBLIC SwWrtShell* GetActiveWrtShell();
+SAL_RET_MAYBENULL SW_DLLPUBLIC SwView* GetActiveView();
+SAL_RET_MAYBENULL SW_DLLPUBLIC SwWrtShell* GetActiveWrtShell();
namespace sw
{