sfx2/source/doc/objxtor.cxx | 6 +++--- sfx2/source/view/viewfrm.cxx | 8 ++++---- sfx2/source/view/viewsh.cxx | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-)
New commits: commit fe599b2e081aa671d19ccbcea922c201f66eb955 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri May 17 17:01:47 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sat May 18 11:34:09 2024 +0200 drop SAL_RET_MAYBENULL from bodies looks like we can get away without it and its tidier for us if we don't need to do it Change-Id: I29a68724a0cd2f33367c700b11c0d40397f607cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167788 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index deb64e6186ac..592b1e7468a5 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -458,7 +458,7 @@ OUString SfxObjectShell::CreateShellID( const SfxObjectShell* pShell ) // returns a pointer the first SfxDocument of specified type -SAL_RET_MAYBENULL SfxObjectShell* SfxObjectShell::GetFirst +SfxObjectShell* SfxObjectShell::GetFirst ( const std::function<bool ( const SfxObjectShell* )>& isObjectShell, bool bOnlyVisible @@ -483,7 +483,7 @@ SAL_RET_MAYBENULL SfxObjectShell* SfxObjectShell::GetFirst // returns a pointer to the next SfxDocument of specified type behind *pDoc -SAL_RET_MAYBENULL SfxObjectShell* SfxObjectShell::GetNext +SfxObjectShell* SfxObjectShell::GetNext ( const SfxObjectShell& rPrev, const std::function<bool ( const SfxObjectShell* )>& isObjectShell, @@ -512,7 +512,7 @@ SAL_RET_MAYBENULL SfxObjectShell* SfxObjectShell::GetNext return nullptr; } -SAL_RET_MAYBENULL SfxObjectShell* SfxObjectShell::Current() +SfxObjectShell* SfxObjectShell::Current() { SfxViewFrame *pFrame = SfxViewFrame::Current(); return pFrame ? pFrame->GetObjectShell() : nullptr; diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 1838700e9cb1..c77de75697fc 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -2067,14 +2067,14 @@ void SfxViewFrame::KillDispatcher_Impl() } } -SAL_RET_MAYBENULL SfxViewFrame* SfxViewFrame::Current() +SfxViewFrame* SfxViewFrame::Current() { SfxApplication* pApp = SfxApplication::Get(); return pApp ? pApp->Get_Impl()->pViewFrame : nullptr; } // returns the first window of spec. type viewing the specified doc. -SAL_RET_MAYBENULL SfxViewFrame* SfxViewFrame::GetFirst +SfxViewFrame* SfxViewFrame::GetFirst ( const SfxObjectShell* pDoc, bool bOnlyIfVisible @@ -2097,7 +2097,7 @@ SAL_RET_MAYBENULL SfxViewFrame* SfxViewFrame::GetFirst } // returns the next window of spec. type viewing the specified doc. -SAL_RET_MAYBENULL SfxViewFrame* SfxViewFrame::GetNext +SfxViewFrame* SfxViewFrame::GetNext ( const SfxViewFrame& rPrev, const SfxObjectShell* pDoc, @@ -2448,7 +2448,7 @@ SfxViewFrame* SfxViewFrame::DisplayNewDocument( SfxObjectShell const & i_rDoc, c ); } -SAL_RET_MAYBENULL SfxViewFrame* SfxViewFrame::Get( const Reference< XController>& i_rController, const SfxObjectShell* i_pDoc ) +SfxViewFrame* SfxViewFrame::Get( const Reference< XController>& i_rController, const SfxObjectShell* i_pDoc ) { if ( !i_rController.is() ) return nullptr; diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index 5204f8306c67..df122f41054f 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -2835,7 +2835,7 @@ bool SfxViewShell::PrepareClose return true; } -SAL_RET_MAYBENULL SfxViewShell* SfxViewShell::Current() +SfxViewShell* SfxViewShell::Current() { SfxViewFrame *pCurrent = SfxViewFrame::Current(); return pCurrent ? pCurrent->GetViewShell() : nullptr; @@ -2849,7 +2849,7 @@ bool SfxViewShell::IsCurrentLokViewReadOnly() return pCurrent && pCurrent->IsLokReadOnlyView(); } -SAL_RET_MAYBENULL SfxViewShell* SfxViewShell::Get( const Reference< XController>& i_rController ) +SfxViewShell* SfxViewShell::Get( const Reference< XController>& i_rController ) { if ( !i_rController.is() ) return nullptr; @@ -3009,7 +3009,7 @@ void SfxViewShell::WriteUserDataSequence ( uno::Sequence < beans::PropertyValue // returns the first shell of spec. type viewing the specified doc. -SAL_RET_MAYBENULL SfxViewShell* SfxViewShell::GetFirst +SfxViewShell* SfxViewShell::GetFirst ( bool bOnlyVisible, const std::function< bool ( const SfxViewShell& ) >& isViewShell @@ -3038,7 +3038,7 @@ SAL_RET_MAYBENULL SfxViewShell* SfxViewShell::GetFirst } // returns the next shell of spec. type viewing the specified doc. -SAL_RET_MAYBENULL SfxViewShell* SfxViewShell::GetNext +SfxViewShell* SfxViewShell::GetNext ( const SfxViewShell& rPrev, bool bOnlyVisible,