sc/source/ui/app/scmod.cxx | 5 +---- sc/source/ui/unoobj/appluno.cxx | 4 ---- sc/source/ui/view/viewfunc.cxx | 4 ---- 3 files changed, 1 insertion(+), 12 deletions(-)
New commits: commit 5f69e451a01e92ff37bc26805b0bbf3663f60575 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Dec 18 10:26:54 2019 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Dec 20 12:44:06 2019 +0100 loplugin:duplicate-defines just include the header file which has a shared definition Change-Id: I7412cc2c87ab1c757a82ac3f307a3a07c3289980 Reviewed-on: https://gerrit.libreoffice.org/85561 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index dfc13e4a0b8f..ac15258da6a3 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -87,6 +87,7 @@ #include <dragdata.hxx> #include <markdata.hxx> #include <transobj.hxx> +#include <funcdesc.hxx> #define ShellClass_ScModule #include <scslots.hxx> @@ -683,10 +684,6 @@ const ScDocOptions& ScModule::GetDocOptions() return *m_pDocCfg; } -#ifndef LRU_MAX -#define LRU_MAX 10 -#endif - void ScModule::InsertEntryToLRUList(sal_uInt16 nFIndex) { if(nFIndex != 0) diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx index a2c9c2c9e227..a0628fb8e132 100644 --- a/sc/source/ui/unoobj/appluno.cxx +++ b/sc/source/ui/unoobj/appluno.cxx @@ -42,10 +42,6 @@ using namespace com::sun::star; -// Number of last used functions, which are saved -//! Combine define with funcpage.hxx and dwfunctr.hxx !!! -#define LRU_MAX 10 - // Special value for zoom //! somewhere central #define SC_ZOOMVAL_OPTIMAL (-1) diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx index 34ab3558c791..7d5e99686ca6 100644 --- a/sc/source/ui/view/viewfunc.cxx +++ b/sc/source/ui/view/viewfunc.cxx @@ -275,10 +275,6 @@ bool ScViewFunc::SelectionEditable( bool* pOnlyNotBecauseOfMatrix /* = NULL */ ) return bRet; } -#ifndef LRU_MAX -#define LRU_MAX 10 -#endif - static bool lcl_FunctionKnown( sal_uInt16 nOpCode ) { const ScFunctionList* pFuncList = ScGlobal::GetStarCalcFunctionList(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits