sc/source/ui/vba/excelvbahelper.hxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 75776e7fb94affecb60ae5b9816d72ecafa3e340
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon May 27 11:49:25 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon May 27 23:29:09 2024 +0200

    sc: use SAL_RET_MAYBENULL in getBestViewShell(), getDocShell()...
    
    ... getCurrentBestViewShell() and getViewFrame()
    
    See 286a1c03fa10acf60f076a0af987112d24cb2ff5 "sc: check
    excel::getDocShell"
    
    Change-Id: Ibdd3f83d4f0571dccdd009f4b1790043144def0d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168090
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/ui/vba/excelvbahelper.hxx 
b/sc/source/ui/vba/excelvbahelper.hxx
index 6f0d71d67789..8216e37963c0 100644
--- a/sc/source/ui/vba/excelvbahelper.hxx
+++ b/sc/source/ui/vba/excelvbahelper.hxx
@@ -51,10 +51,10 @@ void implnCopy( const css::uno::Reference< 
css::frame::XModel>& xModel );
 void implnPaste ( const css::uno::Reference< css::frame::XModel>& xModel );
 void implnCut( const css::uno::Reference< css::frame::XModel>& xModel );
 void implnPasteSpecial( const css::uno::Reference< css::frame::XModel>& 
xModel, InsertDeleteFlags nFlags, ScPasteFunc nFunction, bool bSkipEmpty, bool 
bTranspose);
-ScTabViewShell* getBestViewShell( const css::uno::Reference< 
css::frame::XModel>& xModel ) ;
-ScDocShell* getDocShell( const css::uno::Reference< css::frame::XModel>& 
xModel ) ;
-ScTabViewShell* getCurrentBestViewShell( const css::uno::Reference< 
css::uno::XComponentContext >& xContext );
-SfxViewFrame* getViewFrame( const css::uno::Reference< css::frame::XModel >& 
xModel );
+SAL_RET_MAYBENULL ScTabViewShell* getBestViewShell( const css::uno::Reference< 
css::frame::XModel>& xModel ) ;
+SAL_RET_MAYBENULL ScDocShell* getDocShell( const css::uno::Reference< 
css::frame::XModel>& xModel ) ;
+SAL_RET_MAYBENULL ScTabViewShell* getCurrentBestViewShell( const 
css::uno::Reference< css::uno::XComponentContext >& xContext );
+SAL_RET_MAYBENULL SfxViewFrame* getViewFrame( const css::uno::Reference< 
css::frame::XModel >& xModel );
 
 /// @throws css::uno::RuntimeException
 css::uno::Reference< css::sheet::XUnnamedDatabaseRanges > 
GetUnnamedDataBaseRanges( const ScDocShell* pShell );

Reply via email to