Kaydet (Commit) 26bd18df authored tarafından Laurent Balland-Poirier's avatar Laurent Balland-Poirier Kaydeden (comit) Michael Meeks

EasyHack 42790: get rid of PRODUCT

Preprocessor constant PRODUCT is replaced by !DBG_UTIL
üst 0825e49b
......@@ -112,7 +112,7 @@ inline void* operator new( size_t, DummyType* pPtr )
}
inline void operator delete( void*, DummyType* ) {}
#if defined(PRODUCT)
#ifndef DBG_UTIL
#define _SVVARARR_DEF_GET_OP_INLINE( nm, ArrElem ) \
ArrElem& operator[](sal_uInt16 nP) const { return *(pData+nP); }\
......@@ -128,7 +128,7 @@ void Insert( const nm * pI, sal_uInt16 nP,\
#define _SVVARARR_IMPL_GET_OP_INLINE( nm, ArrElem )
#else
#else // DBG_UTIL
#define _SVVARARR_DEF_GET_OP_INLINE( nm,ArrElem )\
ArrElem& operator[](sal_uInt16 nP) const;\
......@@ -150,7 +150,7 @@ void nm::Insert( const nm *pI, sal_uInt16 nP, sal_uInt16 nStt, sal_uInt16 nE)\
Insert( (const ArrElem*)pI->pData+nStt, (sal_uInt16)nE-nStt, nP );\
}
#endif
#endif // DBG_UTIL
#define _SV_DECL_VARARR_GEN(nm, AE, IS, AERef, vis )\
typedef sal_Bool (*FnForEach_##nm)( const AERef, void* );\
......
......@@ -211,7 +211,7 @@ inline SwIndex& SwIndex::operator= ( xub_StrLen const nVal )
return *this;
}
#endif // PRODUCT
#endif // ifndef DBG_UTIL
#endif
......
......@@ -406,7 +406,7 @@ SwIndex& SwIndex::operator= ( xub_StrLen const nVal )
return *this;
}
#endif // ifndef PRODUCT
#endif // ifdef DBG_UTIL
void SwIndexReg::MoveTo( SwIndexReg& rArr )
{
......
......@@ -829,7 +829,7 @@ SwHistoryResetAttrSet::SwHistoryResetAttrSet( const SfxItemSet& rSet,
{
const sal_uInt16 nWhich = aIter.GetCurItem()->Which();
#ifndef PRODUCT
#ifdef DBG_UTIL
switch (nWhich)
{
case RES_TXTATR_REFMARK:
......@@ -845,7 +845,7 @@ SwHistoryResetAttrSet::SwHistoryResetAttrSet( const SfxItemSet& rSet,
"\nnot such a good idea");
break;
}
#endif
#endif // DBG_UTIL
// Character attribute cannot be inserted into the hints array
// anymore. Therefore we have to treat them as one RES_TXTATR_AUTOFMT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment