use SAL_RET_MAYBENULL in GetActiveWrtShell(), GetActiveView()...
... GetFirstView() and GetNextView() after25b38765d6
"check GetActiveWrtShell() and CheckAndGetWrtShell()" and74f398bb58
"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:
parent
b9f9493b43
commit
693b219545
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue