diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-18 10:26:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-20 12:44:06 +0100 |
commit | 5f69e451a01e92ff37bc26805b0bbf3663f60575 (patch) | |
tree | aade726c397d1daa273b0919c1c8e2c6ebfb521b /sc | |
parent | 137131842f34de41eddfa5c17768c26b30ef9404 (diff) |
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.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/unoobj/appluno.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/viewfunc.cxx | 4 |
3 files changed, 1 insertions, 12 deletions
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(); |