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>
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index dfc13e4..ac15258 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 a2c9c2c9..a0628fb8 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 34ab355..7d5e996 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();