From 24360897c05da1ff7c4854ba192eb98466f4499b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 27 Oct 2016 14:57:17 +0200 Subject: loplugin:expandablemethods in scaddins..scripting Change-Id: I6a39184e526c9a41155565e798a7f1f2542985f2 Reviewed-on: https://gerrit.libreoffice.org/30331 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- scaddins/source/datefunc/datefunc.cxx | 7 +------ scaddins/source/datefunc/datefunc.hxx | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'scaddins/source/datefunc') diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx index ca4003cd37e7..4baa51962cec 100644 --- a/scaddins/source/datefunc/datefunc.cxx +++ b/scaddins/source/datefunc/datefunc.cxx @@ -200,11 +200,6 @@ void ScaDateAddIn::InitData() } } -OUString ScaDateAddIn::GetDisplFuncStr( sal_uInt16 nResId ) throw( uno::RuntimeException, std::exception ) -{ - return ScaResStringLoader( RID_DATE_FUNCTION_NAMES, nResId, GetResMgr() ).GetString(); -} - OUString ScaDateAddIn::GetFuncDescrStr( sal_uInt16 nResId, sal_uInt16 nStrIndex ) throw( uno::RuntimeException, std::exception ) { OUString aRet; @@ -284,7 +279,7 @@ OUString SAL_CALL ScaDateAddIn::getDisplayFunctionName( const OUString& aProgram FindScaFuncData( aProgrammaticName ) ); if( fDataIt != pFuncDataList->end() ) { - aRet = GetDisplFuncStr( fDataIt->GetUINameID() ); + aRet = ScaResStringLoader( RID_DATE_FUNCTION_NAMES, fDataIt->GetUINameID(), GetResMgr() ).GetString(); if( fDataIt->IsDouble() ) aRet += STR_FROM_ANSI( "_ADD" ); } diff --git a/scaddins/source/datefunc/datefunc.hxx b/scaddins/source/datefunc/datefunc.hxx index 201297ed7171..f9876afd3fe5 100644 --- a/scaddins/source/datefunc/datefunc.hxx +++ b/scaddins/source/datefunc/datefunc.hxx @@ -195,7 +195,6 @@ private: ResMgr& GetResMgr() throw( css::uno::RuntimeException, std::exception ); void InitData(); - OUString GetDisplFuncStr( sal_uInt16 nResId ) throw( css::uno::RuntimeException, std::exception ); OUString GetFuncDescrStr( sal_uInt16 nResId, sal_uInt16 nStrIndex ) throw( css::uno::RuntimeException, std::exception ); public: -- cgit