diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 10:38:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 09:49:48 +0000 |
commit | bbf6c5171706e55edcf8e011a536264f4f2efd99 (patch) | |
tree | 086e73ba7bcfb3a489b3e2523708e2a088245618 /formula/source | |
parent | bca707d0ec55c35e048405b05c9e283cf6b97239 (diff) |
loplugin:expandablemethods in forms..formula
Change-Id: Idc948ad06913def28cb642c3a4e5ea9322b9fb3b
Reviewed-on: https://gerrit.libreoffice.org/30688
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/ui/dlg/funcpage.cxx | 8 | ||||
-rw-r--r-- | formula/source/ui/dlg/funcpage.hxx | 1 | ||||
-rw-r--r-- | formula/source/ui/dlg/parawin.cxx | 7 | ||||
-rw-r--r-- | formula/source/ui/dlg/parawin.hxx | 1 |
4 files changed, 2 insertions, 15 deletions
diff --git a/formula/source/ui/dlg/funcpage.cxx b/formula/source/ui/dlg/funcpage.cxx index b2492eb76b13..466857fabf64 100644 --- a/formula/source/ui/dlg/funcpage.cxx +++ b/formula/source/ui/dlg/funcpage.cxx @@ -73,7 +73,7 @@ FuncPage::FuncPage(vcl::Window* pParent,const IFunctionManager* _pFunctionManage m_pLbFunction->set_width_request(aSize.Width()); m_aHelpId = m_pLbFunction->GetHelpId(); - InitLRUList(); + m_pFunctionManager->fillLastRecentlyUsedFunctions(aLRUList); const sal_uInt32 nCategoryCount = m_pFunctionManager->getCount(); for(sal_uInt32 j= 0; j < nCategoryCount; ++j) @@ -296,12 +296,6 @@ const IFunctionDescription* FuncPage::GetFuncDesc( sal_Int32 nPos ) const return static_cast<const IFunctionDescription*>(m_pLbFunction->GetEntryData(nPos)); } -void FuncPage::InitLRUList() -{ - m_pFunctionManager->fillLastRecentlyUsedFunctions(aLRUList); -} - - } // formula /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/formula/source/ui/dlg/funcpage.hxx b/formula/source/ui/dlg/funcpage.hxx index a520b6c00e64..efdd45b4f9bd 100644 --- a/formula/source/ui/dlg/funcpage.hxx +++ b/formula/source/ui/dlg/funcpage.hxx @@ -78,7 +78,6 @@ private: protected: void UpdateFunctionList(const OUString&); - void InitLRUList(); public: diff --git a/formula/source/ui/dlg/parawin.cxx b/formula/source/ui/dlg/parawin.cxx index a6d5f413677b..1e6823a54911 100644 --- a/formula/source/ui/dlg/parawin.cxx +++ b/formula/source/ui/dlg/parawin.cxx @@ -324,11 +324,6 @@ void ParaWin::SetArgument(sal_uInt16 no, const OUString& aString) aParaArray[no] = comphelper::string::stripStart(aString, ' '); } -void ParaWin::DelParaArray() -{ - ::std::vector<OUString>().swap(aParaArray); -} - void ParaWin::SetArgumentFonts(const vcl::Font&aBoldFont,const vcl::Font&aLightFont) { aFntBold=aBoldFont; @@ -432,7 +427,7 @@ void ParaWin::ClearAll() void ParaWin::SetArgumentOffset(sal_uInt16 nOffset) { - DelParaArray(); + aParaArray.clear(); m_pSlider->SetThumbPos(0); aParaArray.resize(nArgs); diff --git a/formula/source/ui/dlg/parawin.hxx b/formula/source/ui/dlg/parawin.hxx index a1c1ad6c79af..7fff5aec6514 100644 --- a/formula/source/ui/dlg/parawin.hxx +++ b/formula/source/ui/dlg/parawin.hxx @@ -106,7 +106,6 @@ protected: void InitArgInput( sal_uInt16 nPos, FixedText& rFtArg, PushButton& rBtnFx, ArgEdit& rEdArg, RefButton& rRefBtn); - void DelParaArray(); void SetArgumentDesc(const OUString& aText); void SetArgumentText(const OUString& aText); |