use SAL_RET_MAYBENULL in GetActiveWrtShell(), GetActiveView()...

... GetFirstView() and GetNextView()

after 25b38765d6
"check GetActiveWrtShell() and CheckAndGetWrtShell()"
and 74f398bb58
"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>
This commit is contained in:
Xisco Fauli 2024-05-20 14:22:40 +02:00
parent b9f9493b43
commit 693b219545

View file

@ -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
{