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 ) ...@@ -112,7 +112,7 @@ inline void* operator new( size_t, DummyType* pPtr )
} }
inline void operator delete( void*, DummyType* ) {} inline void operator delete( void*, DummyType* ) {}
#if defined(PRODUCT) #ifndef DBG_UTIL
#define _SVVARARR_DEF_GET_OP_INLINE( nm, ArrElem ) \ #define _SVVARARR_DEF_GET_OP_INLINE( nm, ArrElem ) \
ArrElem& operator[](sal_uInt16 nP) const { return *(pData+nP); }\ ArrElem& operator[](sal_uInt16 nP) const { return *(pData+nP); }\
...@@ -128,7 +128,7 @@ void Insert( const nm * pI, sal_uInt16 nP,\ ...@@ -128,7 +128,7 @@ void Insert( const nm * pI, sal_uInt16 nP,\
#define _SVVARARR_IMPL_GET_OP_INLINE( nm, ArrElem ) #define _SVVARARR_IMPL_GET_OP_INLINE( nm, ArrElem )
#else #else // DBG_UTIL
#define _SVVARARR_DEF_GET_OP_INLINE( nm,ArrElem )\ #define _SVVARARR_DEF_GET_OP_INLINE( nm,ArrElem )\
ArrElem& operator[](sal_uInt16 nP) const;\ 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)\ ...@@ -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 );\ 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 )\ #define _SV_DECL_VARARR_GEN(nm, AE, IS, AERef, vis )\
typedef sal_Bool (*FnForEach_##nm)( const AERef, void* );\ typedef sal_Bool (*FnForEach_##nm)( const AERef, void* );\
......
...@@ -211,7 +211,7 @@ inline SwIndex& SwIndex::operator= ( xub_StrLen const nVal ) ...@@ -211,7 +211,7 @@ inline SwIndex& SwIndex::operator= ( xub_StrLen const nVal )
return *this; return *this;
} }
#endif // PRODUCT #endif // ifndef DBG_UTIL
#endif #endif
......
...@@ -406,7 +406,7 @@ SwIndex& SwIndex::operator= ( xub_StrLen const nVal ) ...@@ -406,7 +406,7 @@ SwIndex& SwIndex::operator= ( xub_StrLen const nVal )
return *this; return *this;
} }
#endif // ifndef PRODUCT #endif // ifdef DBG_UTIL
void SwIndexReg::MoveTo( SwIndexReg& rArr ) void SwIndexReg::MoveTo( SwIndexReg& rArr )
{ {
......
...@@ -829,7 +829,7 @@ SwHistoryResetAttrSet::SwHistoryResetAttrSet( const SfxItemSet& rSet, ...@@ -829,7 +829,7 @@ SwHistoryResetAttrSet::SwHistoryResetAttrSet( const SfxItemSet& rSet,
{ {
const sal_uInt16 nWhich = aIter.GetCurItem()->Which(); const sal_uInt16 nWhich = aIter.GetCurItem()->Which();
#ifndef PRODUCT #ifdef DBG_UTIL
switch (nWhich) switch (nWhich)
{ {
case RES_TXTATR_REFMARK: case RES_TXTATR_REFMARK:
...@@ -845,7 +845,7 @@ SwHistoryResetAttrSet::SwHistoryResetAttrSet( const SfxItemSet& rSet, ...@@ -845,7 +845,7 @@ SwHistoryResetAttrSet::SwHistoryResetAttrSet( const SfxItemSet& rSet,
"\nnot such a good idea"); "\nnot such a good idea");
break; break;
} }
#endif #endif // DBG_UTIL
// Character attribute cannot be inserted into the hints array // Character attribute cannot be inserted into the hints array
// anymore. Therefore we have to treat them as one RES_TXTATR_AUTOFMT: // 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