summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basic/source/comp/codegen.cxx6
-rw-r--r--basic/source/comp/exprgen.cxx2
-rw-r--r--basic/source/comp/symtbl.cxx2
-rw-r--r--basic/source/runtime/runtime.cxx4
-rw-r--r--basic/source/runtime/step1.cxx2
-rw-r--r--[-rwxr-xr-x]connectivity/inc/connectivity/DriversConfig.hxx0
-rw-r--r--[-rwxr-xr-x]connectivity/makefile.pmk0
-rw-r--r--[-rwxr-xr-x]connectivity/qa/connectivity/tools/AbstractDatabase.java0
-rw-r--r--[-rwxr-xr-x]connectivity/qa/connectivity/tools/DatabaseAccess.java0
-rw-r--r--[-rwxr-xr-x]connectivity/qa/connectivity/tools/DbaseDatabase.java0
-rw-r--r--[-rwxr-xr-x]connectivity/qa/drivers/dbase/DBaseSqlTests.java0
-rw-r--r--[-rwxr-xr-x]connectivity/source/commontools/DriversConfig.cxx0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/adabas/adabas.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/ado/ado.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/calc/calc.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/dbase/dbase.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/evoab/evoab.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/evoab2/evoab2.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/flat/flat.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/hsqldb/hsqldb.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/jdbc/jdbc.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/kab/kab.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/macab/macab.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/mozab/mozab.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/mozab/mozab2.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/mysql/mysql.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/source/drivers/odbc/odbc.xcu0
-rw-r--r--[-rwxr-xr-x]connectivity/target.pmk0
-rw-r--r--[-rwxr-xr-x]connectivity/util/delzip0
-rw-r--r--[-rwxr-xr-x]connectivity/util/langfilter.xsl0
-rw-r--r--[-rwxr-xr-x]connectivity/util/makefile.mk0
-rw-r--r--desktop/prj/build.lst2
-rw-r--r--desktop/source/app/app.cxx2
-rw-r--r--formula/inc/formula/opcode.hxx2
-rw-r--r--formula/inc/formula/token.hxx2
-rw-r--r--framework/source/helper/titlehelper.cxx2
-rw-r--r--[-rwxr-xr-x]officecfg/registry/schema/org/openoffice/Office/DataAccess/Drivers.xcs0
-rw-r--r--[-rwxr-xr-x]officecfg/registry/schema/org/openoffice/Office/DataAccess/makefile.mk0
-rw-r--r--sfx2/source/appl/app.cxx2
-rw-r--r--sfx2/source/appl/appmain.cxx2
-rw-r--r--sfx2/source/appl/appmisc.cxx2
-rw-r--r--sfx2/source/appl/appquit.cxx6
-rw-r--r--sfx2/source/control/shell.cxx4
-rw-r--r--sfx2/source/view/topfrm.cxx4
-rw-r--r--shell/source/tools/lngconvex/lngconvex.cxx13
-rw-r--r--svx/prj/build.lst2
-rw-r--r--svx/source/cui/treeopt.cxx4
-rw-r--r--svx/source/dialog/impgrf.cxx2
-rw-r--r--svx/source/editeng/editeng.cxx2
-rw-r--r--svx/source/editeng/svxacorr.cxx4
-rw-r--r--svx/source/editeng/txtrange.cxx2
-rw-r--r--svx/source/items/paraitem.cxx2
-rw-r--r--svx/source/svdraw/svdview.cxx2
-rw-r--r--svx/source/svrtf/rtfgrf.cxx2
-rw-r--r--svx/source/svxlink/fileobj.cxx2
-rw-r--r--xmloff/inc/xmloff/ProgressBarHelper.hxx2
-rw-r--r--xmloff/inc/xmloff/xmlexp.hxx2
-rw-r--r--xmloff/source/core/ProgressBarHelper.cxx4
-rw-r--r--xmloff/source/core/attrlist.cxx13
-rw-r--r--xmloff/source/core/xmlerror.cxx2
-rw-r--r--xmloff/source/core/xmlexp.cxx2
-rw-r--r--xmloff/source/core/xmlimp.cxx4
-rw-r--r--xmloff/source/draw/shapeexport.cxx2
-rw-r--r--xmloff/source/style/xmlstyle.cxx8
-rw-r--r--xmloff/source/text/XMLIndexTOCContext.cxx2
-rw-r--r--xmloff/source/text/XMLSectionImportContext.cxx2
-rw-r--r--xmloff/source/text/txtflde.cxx2
-rw-r--r--xmloff/source/text/txtimppr.cxx14
-rw-r--r--xmloff/source/text/txtparae.cxx6
-rw-r--r--xmloff/source/transform/StyleOOoTContext.cxx2
-rw-r--r--xmloff/source/transform/TransformerBase.cxx4
71 files changed, 70 insertions, 84 deletions
diff --git a/basic/source/comp/codegen.cxx b/basic/source/comp/codegen.cxx
index 1b45d28502..a3ead5e305 100644
--- a/basic/source/comp/codegen.cxx
+++ b/basic/source/comp/codegen.cxx
@@ -83,7 +83,7 @@ void SbiCodeGen::GenStmnt()
UINT32 SbiCodeGen::Gen( SbiOpcode eOpcode )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
if( eOpcode < SbOP0_START || eOpcode > SbOP0_END )
pParser->Error( SbERR_INTERNAL_ERROR, "OPCODE1" );
#endif
@@ -94,7 +94,7 @@ UINT32 SbiCodeGen::Gen( SbiOpcode eOpcode )
UINT32 SbiCodeGen::Gen( SbiOpcode eOpcode, UINT32 nOpnd )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
if( eOpcode < SbOP1_START || eOpcode > SbOP1_END )
pParser->Error( SbERR_INTERNAL_ERROR, "OPCODE2" );
#endif
@@ -107,7 +107,7 @@ UINT32 SbiCodeGen::Gen( SbiOpcode eOpcode, UINT32 nOpnd )
UINT32 SbiCodeGen::Gen( SbiOpcode eOpcode, UINT32 nOpnd1, UINT32 nOpnd2 )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
if( eOpcode < SbOP2_START || eOpcode > SbOP2_END )
pParser->Error( SbERR_INTERNAL_ERROR, "OPCODE3" );
#endif
diff --git a/basic/source/comp/exprgen.cxx b/basic/source/comp/exprgen.cxx
index 9afcf5262f..5da3c41b73 100644
--- a/basic/source/comp/exprgen.cxx
+++ b/basic/source/comp/exprgen.cxx
@@ -170,7 +170,7 @@ void SbiExprNode::Gen( RecursiveMode eRecMode )
void SbiExprNode::GenElement( SbiOpcode eOp )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
if( (eOp < _RTL || eOp > _CALLC) && eOp != _FIND_G && eOp != _FIND_CM )
pGen->GetParser()->Error( SbERR_INTERNAL_ERROR, "Opcode" );
#endif
diff --git a/basic/source/comp/symtbl.cxx b/basic/source/comp/symtbl.cxx
index 2156756164..1d34698104 100644
--- a/basic/source/comp/symtbl.cxx
+++ b/basic/source/comp/symtbl.cxx
@@ -175,7 +175,7 @@ void SbiSymPool::Add( SbiSymDef* pDef )
{
if( pDef->pIn )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
// schon in einem anderen Pool drin!
pParser->Error( SbERR_INTERNAL_ERROR, "Dbl Pool" );
#endif
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 87f88ea9e6..361255af24 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -867,7 +867,7 @@ void SbiRuntime::PushVar( SbxVariable* pVar )
SbxVariableRef SbiRuntime::PopVar()
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
if( !nExprLvl )
{
StarBASIC::FatalError( SbERR_INTERNAL_ERROR );
@@ -902,7 +902,7 @@ BOOL SbiRuntime::ClearExprStack()
SbxVariable* SbiRuntime::GetTOS( short n )
{
n = nExprLvl - n - 1;
-#ifndef PRODUCT
+#ifdef DBG_UTIL
if( n < 0 )
{
StarBASIC::FatalError( SbERR_INTERNAL_ERROR );
diff --git a/basic/source/runtime/step1.cxx b/basic/source/runtime/step1.cxx
index 1f0914dca0..f7c1086304 100644
--- a/basic/source/runtime/step1.cxx
+++ b/basic/source/runtime/step1.cxx
@@ -160,7 +160,7 @@ void SbiRuntime::StepPAD( UINT32 nOp1 )
void SbiRuntime::StepJUMP( UINT32 nOp1 )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
// #QUESTION shouln't this be
// if( (BYTE*)( nOp1+pImagGetCode() ) >= pImg->GetCodeSize() )
if( nOp1 >= pImg->GetCodeSize() )
diff --git a/connectivity/inc/connectivity/DriversConfig.hxx b/connectivity/inc/connectivity/DriversConfig.hxx
index 8a33019d57..8a33019d57 100755..100644
--- a/connectivity/inc/connectivity/DriversConfig.hxx
+++ b/connectivity/inc/connectivity/DriversConfig.hxx
diff --git a/connectivity/makefile.pmk b/connectivity/makefile.pmk
index ede06e49d3..ede06e49d3 100755..100644
--- a/connectivity/makefile.pmk
+++ b/connectivity/makefile.pmk
diff --git a/connectivity/qa/connectivity/tools/AbstractDatabase.java b/connectivity/qa/connectivity/tools/AbstractDatabase.java
index 60a35c1d3d..60a35c1d3d 100755..100644
--- a/connectivity/qa/connectivity/tools/AbstractDatabase.java
+++ b/connectivity/qa/connectivity/tools/AbstractDatabase.java
diff --git a/connectivity/qa/connectivity/tools/DatabaseAccess.java b/connectivity/qa/connectivity/tools/DatabaseAccess.java
index bc39bb0990..bc39bb0990 100755..100644
--- a/connectivity/qa/connectivity/tools/DatabaseAccess.java
+++ b/connectivity/qa/connectivity/tools/DatabaseAccess.java
diff --git a/connectivity/qa/connectivity/tools/DbaseDatabase.java b/connectivity/qa/connectivity/tools/DbaseDatabase.java
index be41dfae39..be41dfae39 100755..100644
--- a/connectivity/qa/connectivity/tools/DbaseDatabase.java
+++ b/connectivity/qa/connectivity/tools/DbaseDatabase.java
diff --git a/connectivity/qa/drivers/dbase/DBaseSqlTests.java b/connectivity/qa/drivers/dbase/DBaseSqlTests.java
index c60352636f..c60352636f 100755..100644
--- a/connectivity/qa/drivers/dbase/DBaseSqlTests.java
+++ b/connectivity/qa/drivers/dbase/DBaseSqlTests.java
diff --git a/connectivity/source/commontools/DriversConfig.cxx b/connectivity/source/commontools/DriversConfig.cxx
index dae6b9136f..dae6b9136f 100755..100644
--- a/connectivity/source/commontools/DriversConfig.cxx
+++ b/connectivity/source/commontools/DriversConfig.cxx
diff --git a/connectivity/source/drivers/adabas/adabas.xcu b/connectivity/source/drivers/adabas/adabas.xcu
index e20ef1d3f7..e20ef1d3f7 100755..100644
--- a/connectivity/source/drivers/adabas/adabas.xcu
+++ b/connectivity/source/drivers/adabas/adabas.xcu
diff --git a/connectivity/source/drivers/ado/ado.xcu b/connectivity/source/drivers/ado/ado.xcu
index a99b989c83..a99b989c83 100755..100644
--- a/connectivity/source/drivers/ado/ado.xcu
+++ b/connectivity/source/drivers/ado/ado.xcu
diff --git a/connectivity/source/drivers/calc/calc.xcu b/connectivity/source/drivers/calc/calc.xcu
index 5ca6c81b60..5ca6c81b60 100755..100644
--- a/connectivity/source/drivers/calc/calc.xcu
+++ b/connectivity/source/drivers/calc/calc.xcu
diff --git a/connectivity/source/drivers/dbase/dbase.xcu b/connectivity/source/drivers/dbase/dbase.xcu
index 4c8a0413ef..4c8a0413ef 100755..100644
--- a/connectivity/source/drivers/dbase/dbase.xcu
+++ b/connectivity/source/drivers/dbase/dbase.xcu
diff --git a/connectivity/source/drivers/evoab/evoab.xcu b/connectivity/source/drivers/evoab/evoab.xcu
index 947c639bc6..947c639bc6 100755..100644
--- a/connectivity/source/drivers/evoab/evoab.xcu
+++ b/connectivity/source/drivers/evoab/evoab.xcu
diff --git a/connectivity/source/drivers/evoab2/evoab2.xcu b/connectivity/source/drivers/evoab2/evoab2.xcu
index e1adbab087..e1adbab087 100755..100644
--- a/connectivity/source/drivers/evoab2/evoab2.xcu
+++ b/connectivity/source/drivers/evoab2/evoab2.xcu
diff --git a/connectivity/source/drivers/flat/flat.xcu b/connectivity/source/drivers/flat/flat.xcu
index 6a22ed8662..6a22ed8662 100755..100644
--- a/connectivity/source/drivers/flat/flat.xcu
+++ b/connectivity/source/drivers/flat/flat.xcu
diff --git a/connectivity/source/drivers/hsqldb/hsqldb.xcu b/connectivity/source/drivers/hsqldb/hsqldb.xcu
index befa202f4c..befa202f4c 100755..100644
--- a/connectivity/source/drivers/hsqldb/hsqldb.xcu
+++ b/connectivity/source/drivers/hsqldb/hsqldb.xcu
diff --git a/connectivity/source/drivers/jdbc/jdbc.xcu b/connectivity/source/drivers/jdbc/jdbc.xcu
index c758a79bd0..c758a79bd0 100755..100644
--- a/connectivity/source/drivers/jdbc/jdbc.xcu
+++ b/connectivity/source/drivers/jdbc/jdbc.xcu
diff --git a/connectivity/source/drivers/kab/kab.xcu b/connectivity/source/drivers/kab/kab.xcu
index c4bb50bb83..c4bb50bb83 100755..100644
--- a/connectivity/source/drivers/kab/kab.xcu
+++ b/connectivity/source/drivers/kab/kab.xcu
diff --git a/connectivity/source/drivers/macab/macab.xcu b/connectivity/source/drivers/macab/macab.xcu
index ead6b5fb23..ead6b5fb23 100755..100644
--- a/connectivity/source/drivers/macab/macab.xcu
+++ b/connectivity/source/drivers/macab/macab.xcu
diff --git a/connectivity/source/drivers/mozab/mozab.xcu b/connectivity/source/drivers/mozab/mozab.xcu
index 7d3b78e3fe..7d3b78e3fe 100755..100644
--- a/connectivity/source/drivers/mozab/mozab.xcu
+++ b/connectivity/source/drivers/mozab/mozab.xcu
diff --git a/connectivity/source/drivers/mozab/mozab2.xcu b/connectivity/source/drivers/mozab/mozab2.xcu
index 33e0bebcd4..33e0bebcd4 100755..100644
--- a/connectivity/source/drivers/mozab/mozab2.xcu
+++ b/connectivity/source/drivers/mozab/mozab2.xcu
diff --git a/connectivity/source/drivers/mysql/mysql.xcu b/connectivity/source/drivers/mysql/mysql.xcu
index 27c84c92d9..27c84c92d9 100755..100644
--- a/connectivity/source/drivers/mysql/mysql.xcu
+++ b/connectivity/source/drivers/mysql/mysql.xcu
diff --git a/connectivity/source/drivers/odbc/odbc.xcu b/connectivity/source/drivers/odbc/odbc.xcu
index f906d08bdd..f906d08bdd 100755..100644
--- a/connectivity/source/drivers/odbc/odbc.xcu
+++ b/connectivity/source/drivers/odbc/odbc.xcu
diff --git a/connectivity/target.pmk b/connectivity/target.pmk
index 97ef318b5f..97ef318b5f 100755..100644
--- a/connectivity/target.pmk
+++ b/connectivity/target.pmk
diff --git a/connectivity/util/delzip b/connectivity/util/delzip
index e69de29bb2..e69de29bb2 100755..100644
--- a/connectivity/util/delzip
+++ b/connectivity/util/delzip
diff --git a/connectivity/util/langfilter.xsl b/connectivity/util/langfilter.xsl
index 76cfcff20a..76cfcff20a 100755..100644
--- a/connectivity/util/langfilter.xsl
+++ b/connectivity/util/langfilter.xsl
diff --git a/connectivity/util/makefile.mk b/connectivity/util/makefile.mk
index 805aa0110f..805aa0110f 100755..100644
--- a/connectivity/util/makefile.mk
+++ b/connectivity/util/makefile.mk
diff --git a/desktop/prj/build.lst b/desktop/prj/build.lst
index 3aa56e273f..ec04f3d7fc 100644
--- a/desktop/prj/build.lst
+++ b/desktop/prj/build.lst
@@ -1,4 +1,4 @@
-dt desktop : l10n sfx2 stoc uui BERKELEYDB:berkeleydb sysui SO:sysui_so BOOST:boost svx xmlhelp NULL
+dt desktop : l10n sfx2 stoc BERKELEYDB:berkeleydb sysui SO:sysui_so BOOST:boost svx xmlhelp NULL
dt desktop usr1 - all dt_mkout NULL
dt desktop\inc nmake - all dt_inc NULL
dt desktop\prj get - all dt_prj NULL
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index f893ed07c8..cc32947f0f 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1348,7 +1348,7 @@ void Desktop::Main()
else
aTitle = aTitleString;
-#ifndef PRODUCT
+#ifdef DBG_UTIL
//include version ID in non product builds
::rtl::OUString aDefault;
aTitle += DEFINE_CONST_UNICODE(" [");
diff --git a/formula/inc/formula/opcode.hxx b/formula/inc/formula/opcode.hxx
index 906d408b8b..4616f24fd7 100644
--- a/formula/inc/formula/opcode.hxx
+++ b/formula/inc/formula/opcode.hxx
@@ -401,7 +401,7 @@ enum OpCodeEnum
ocNone = SC_OPCODE_NONE
};
-#ifdef PRODUCT
+#ifndef DBG_UTIL
// save memory since compilers tend to int an enum
typedef USHORT OpCode;
#else
diff --git a/formula/inc/formula/token.hxx b/formula/inc/formula/token.hxx
index aae43cc561..313ef1b8c4 100644
--- a/formula/inc/formula/token.hxx
+++ b/formula/inc/formula/token.hxx
@@ -79,7 +79,7 @@ enum StackVarEnum
svUnknown // unknown StackType
};
-#ifdef PRODUCT
+#ifndef DBG_UTIL
// save memory since compilers tend to int an enum
typedef BYTE StackVar;
#else
diff --git a/framework/source/helper/titlehelper.cxx b/framework/source/helper/titlehelper.cxx
index 4c83be7f6c..e60aebbaed 100644
--- a/framework/source/helper/titlehelper.cxx
+++ b/framework/source/helper/titlehelper.cxx
@@ -616,7 +616,7 @@ void TitleHelper::impl_appendModuleName (::rtl::OUStringBuffer& sTitle)
}
//*****************************************************************************************************************
-#ifndef PRODUCT
+#ifdef DBG_UTIL
void TitleHelper::impl_appendDebugVersion (::rtl::OUStringBuffer& sTitle)
{
::rtl::OUString sDefault ;
diff --git a/officecfg/registry/schema/org/openoffice/Office/DataAccess/Drivers.xcs b/officecfg/registry/schema/org/openoffice/Office/DataAccess/Drivers.xcs
index d0b54e7149..d0b54e7149 100755..100644
--- a/officecfg/registry/schema/org/openoffice/Office/DataAccess/Drivers.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/DataAccess/Drivers.xcs
diff --git a/officecfg/registry/schema/org/openoffice/Office/DataAccess/makefile.mk b/officecfg/registry/schema/org/openoffice/Office/DataAccess/makefile.mk
index 906bbe5108..906bbe5108 100755..100644
--- a/officecfg/registry/schema/org/openoffice/Office/DataAccess/makefile.mk
+++ b/officecfg/registry/schema/org/openoffice/Office/DataAccess/makefile.mk
diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx
index 135f2f3f2b..8cce7a41f0 100644
--- a/sfx2/source/appl/app.cxx
+++ b/sfx2/source/appl/app.cxx
@@ -359,7 +359,7 @@ SfxApplication::SfxApplication()
RTL_LOGFILE_CONTEXT_TRACE( aLog, "{ initialize DDE" );
#ifdef DDE_AVAILABLE
-#ifdef PRODUCT
+#ifndef DBG_UTIL
InitializeDde();
#else
if( !InitializeDde() )
diff --git a/sfx2/source/appl/appmain.cxx b/sfx2/source/appl/appmain.cxx
index d0e1e40f0d..0734b18ec6 100644
--- a/sfx2/source/appl/appmain.cxx
+++ b/sfx2/source/appl/appmain.cxx
@@ -124,7 +124,7 @@ void SfxApplication::Init
*/
{
#ifdef DDE_AVAILABLE
-#ifdef PRODUCT
+#ifndef DBG_UTIL
InitializeDde();
#else
if( !InitializeDde() )
diff --git a/sfx2/source/appl/appmisc.cxx b/sfx2/source/appl/appmisc.cxx
index 1768229b1d..94c2c28455 100644
--- a/sfx2/source/appl/appmisc.cxx
+++ b/sfx2/source/appl/appmisc.cxx
@@ -189,7 +189,7 @@ void SfxApplication::InitializeDisplayName_Impl()
aGuard.clear();
-#ifndef PRODUCT
+#ifdef DBG_UTIL
::rtl::OUString aDefault;
aTitle += DEFINE_CONST_UNICODE(" [");
diff --git a/sfx2/source/appl/appquit.cxx b/sfx2/source/appl/appquit.cxx
index 213abbb8df..75dd23c9bd 100644
--- a/sfx2/source/appl/appquit.cxx
+++ b/sfx2/source/appl/appquit.cxx
@@ -77,7 +77,7 @@
using ::basic::BasicManagerRepository;
-#ifndef PRODUCT
+#ifdef DBG_UTIL
DECLARE_LIST( SfxFrameWindowFactoryArray_Impl, SfxFrameWindowFactory* )
SV_DECL_PTRARR(SfxInitLinkList, Link*, 2, 2)
#endif
@@ -203,7 +203,7 @@ void SfxApplication::Deinitialize()
delete pAppData_Impl->pLabelResMgr;
-#ifndef PRODUCT
+#ifdef DBG_UTIL
DELETEX(pAppData_Impl->pSlotPool);
DELETEX(pAppData_Impl->pEventConfig);
DELETEX(pAppData_Impl->pMiscConfig);
@@ -212,7 +212,7 @@ void SfxApplication::Deinitialize()
DELETEX(pAppData_Impl->pInitLinkList);
#endif
-#ifndef PRODUCT
+#ifdef DBG_UTIL
DELETEX(pAppData_Impl->pTbxCtrlFac);
DELETEX(pAppData_Impl->pStbCtrlFac);
DELETEX(pAppData_Impl->pMenuCtrlFac);
diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx
index 403c331256..b86c5b5e2f 100644
--- a/sfx2/source/control/shell.cxx
+++ b/sfx2/source/control/shell.cxx
@@ -659,7 +659,7 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, BOOL bMDI )
*/
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
const SfxInterface *p_IF = GetInterface();
if ( !p_IF )
return;
@@ -702,7 +702,7 @@ void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, BOOL bMDI )
*/
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
const SfxInterface *p_IF = GetInterface();
if ( !p_IF )
return;
diff --git a/sfx2/source/view/topfrm.cxx b/sfx2/source/view/topfrm.cxx
index ea7dd77f98..2ab09bd1d3 100644
--- a/sfx2/source/view/topfrm.cxx
+++ b/sfx2/source/view/topfrm.cxx
@@ -532,7 +532,7 @@ SfxTopFrame* SfxTopFrame::Create( SfxObjectShell* pDoc, USHORT nViewId, BOOL bHi
aTitle += String(aProductName);
aTitle += ' ';
aTitle += String( GetModuleName_Impl( aDocServiceName ) );
-#ifndef PRODUCT
+#ifdef DBG_UTIL
::rtl::OUString aDefault;
aTitle += DEFINE_CONST_UNICODE(" [");
String aVerId( utl::Bootstrap::getBuildIdData( aDefault ));
@@ -1095,7 +1095,7 @@ String SfxTopViewFrame::UpdateTitle()
aTitle += ' ';
::rtl::OUString aDocServiceName( GetObjectShell()->GetFactory().GetDocumentServiceName() );
aTitle += String( GetModuleName_Impl( aDocServiceName ) );
-#ifndef PRODUCT
+#ifdef DBG_UTIL
::rtl::OUString aDefault;
aTitle += DEFINE_CONST_UNICODE(" [");
String aVerId( utl::Bootstrap::getBuildIdData( aDefault ));
diff --git a/shell/source/tools/lngconvex/lngconvex.cxx b/shell/source/tools/lngconvex/lngconvex.cxx
index e5fa02155f..92ee630748 100644
--- a/shell/source/tools/lngconvex/lngconvex.cxx
+++ b/shell/source/tools/lngconvex/lngconvex.cxx
@@ -31,12 +31,6 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_shell.hxx"
-#if OSL_DEBUG_LEVEL == 0
-#ifndef NDEBUG
-#define NDEBUG
-#endif
-#endif
-
#include <tools/presys.h>
#if defined _MSC_VER
#pragma warning(push, 1)
@@ -60,7 +54,6 @@
#include <iostream>
#include <fstream>
-#include <assert.h>
#include <map>
#include <sstream>
#include <iterator>
@@ -282,7 +275,7 @@ public:
void substitute(std::string& Text)
{
replacement_table_t* prt = get_replacement_table(active_iso_lang_.make_std_string());
- assert(prt);
+ OSL_ASSERT(prt);
replacement_table_t::iterator iter = prt->find(Text);
if (iter != prt->end())
Text = iter->second;
@@ -292,7 +285,7 @@ public:
const std::string& Placeholder, const std::string& Substitute)
{
replacement_table_t* prt = get_replacement_table(active_iso_lang_.make_std_string());
- assert(prt);
+ OSL_ASSERT(prt);
prt->insert(std::make_pair(Placeholder, Substitute));
}
@@ -330,7 +323,7 @@ void add_group_entries(
const ByteString& GroupName,
Substitutor& Substitutor)
{
- assert(aConfig.HasGroup(GroupName));
+ OSL_ASSERT(aConfig.HasGroup(GroupName));
aConfig.SetGroup(GroupName);
size_t key_count = aConfig.GetKeyCount();
diff --git a/svx/prj/build.lst b/svx/prj/build.lst
index 56980702fb..feb6c027d8 100644
--- a/svx/prj/build.lst
+++ b/svx/prj/build.lst
@@ -1,4 +1,4 @@
-sx svx : l10n connectivity xmloff linguistic jvmfwk avmedia configmgr ucb fileaccess drawinglayer NULL
+sx svx : l10n connectivity xmloff linguistic jvmfwk avmedia drawinglayer NULL
sx svx usr1 - all sx_mkout NULL
sx svx\inc nmake - all sx_inc NULL
sx svx\uiconfig\layout nmake - all sx_layout NULL
diff --git a/svx/source/cui/treeopt.cxx b/svx/source/cui/treeopt.cxx
index 52d47523ed..d1be63e327 100644
--- a/svx/source/cui/treeopt.cxx
+++ b/svx/source/cui/treeopt.cxx
@@ -2034,7 +2034,7 @@ void OfaTreeOptionsDialog::Initialize( const Reference< XFrame >& _xFrame )
( RID_SW_TP_MAILCONFIG != nPageId || MailMergeCfg_Impl().IsEmailSupported() ) )
AddTabPage( nPageId, rTextArray.GetString(i), nGroup );
}
-#ifndef PRODUCT
+#ifdef DBG_UTIL
AddTabPage( RID_SW_TP_OPTTEST_PAGE, String::CreateFromAscii("Interner Test"), nGroup );
#endif
}
@@ -2050,7 +2050,7 @@ void OfaTreeOptionsDialog::Initialize( const Reference< XFrame >& _xFrame )
if ( !lcl_isOptionHidden( nPageId, aOptionsDlgOpt ) )
AddTabPage( nPageId, rHTMLArray.GetString(i), nGroup );
}
-#ifndef PRODUCT
+#ifdef DBG_UTIL
AddTabPage( RID_SW_TP_OPTTEST_PAGE, String::CreateFromAscii("Interner Test"), nGroup );
#endif
}
diff --git a/svx/source/dialog/impgrf.cxx b/svx/source/dialog/impgrf.cxx
index b60c391f00..d02e2b9ee3 100644
--- a/svx/source/dialog/impgrf.cxx
+++ b/svx/source/dialog/impgrf.cxx
@@ -111,7 +111,7 @@ int LoadGraphic( const String &rPath, const String &rFilterName,
nRes = pFilter->ImportGraphic( rGraphic, rPath, *pStream,
nFilter, pDeterminedFormat );
-#ifndef PRODUCT
+#ifdef DBG_UTIL
if( nRes )
{
if( pMed )
diff --git a/svx/source/editeng/editeng.cxx b/svx/source/editeng/editeng.cxx
index 77ae82fde0..80027fff73 100644
--- a/svx/source/editeng/editeng.cxx
+++ b/svx/source/editeng/editeng.cxx
@@ -1128,7 +1128,7 @@ sal_Bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pEditVie
break;
default:
{
- #if (OSL_DEBUG_LEVEL > 1) && !defined( PRODUCT )
+ #if (OSL_DEBUG_LEVEL > 1) && defined(DBG_UTIL)
if ( ( nCode == KEY_W ) && rKeyEvent.GetKeyCode().IsMod1() && rKeyEvent.GetKeyCode().IsMod2() )
{
SfxItemSet aAttribs = pEditView->GetAttribs();
diff --git a/svx/source/editeng/svxacorr.cxx b/svx/source/editeng/svxacorr.cxx
index b7861e9154..05ed752fbf 100644
--- a/svx/source/editeng/svxacorr.cxx
+++ b/svx/source/editeng/svxacorr.cxx
@@ -1385,7 +1385,7 @@ void SvxAutoCorrect::SaveCplSttExceptList( LanguageType eLang )
if( pLists )
pLists->SaveCplSttExceptList();
}
-#ifndef PRODUCT
+#ifdef DBG_UTIL
else
{
DBG_ERROR("speichern einer leeren Liste?");
@@ -1401,7 +1401,7 @@ void SvxAutoCorrect::SaveWrdSttExceptList(LanguageType eLang)
if(pLists)
pLists->SaveWrdSttExceptList();
}
-#ifndef PRODUCT
+#ifdef DBG_UTIL
else
{
DBG_ERROR("speichern einer leeren Liste?");
diff --git a/svx/source/editeng/txtrange.cxx b/svx/source/editeng/txtrange.cxx
index f79c3530f6..6ddbda37d2 100644
--- a/svx/source/editeng/txtrange.cxx
+++ b/svx/source/editeng/txtrange.cxx
@@ -67,7 +67,7 @@ TextRanger::TextRanger( const basegfx::B2DPolyPolygon& rPolyPolygon, const baseg
bInner( bInnr ),
bVertical( bVert )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
bFlag3 = bFlag4 = bFlag5 = bFlag6 = bFlag7 = FALSE;
#endif
pRangeArr = new Range[ nCacheSize ];
diff --git a/svx/source/items/paraitem.cxx b/svx/source/items/paraitem.cxx
index 4bb7b62ac7..2e67fc5f61 100644
--- a/svx/source/items/paraitem.cxx
+++ b/svx/source/items/paraitem.cxx
@@ -283,7 +283,7 @@ SfxItemPresentation SvxLineSpacingItem::GetPresentation
XubString& rText, const IntlWrapper *
) const
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
rText.AssignAscii( RTL_CONSTASCII_STRINGPARAM( "SvxLineSpacingItem" ));
#else
rText.Erase();
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index 4b2b463acf..92b64f3501 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -1298,7 +1298,7 @@ XubString SdrView::GetStatusText()
aStr.SearchAndReplaceAscii("%2", UniString::CreateFromInt32(nLin + 1));
aStr.SearchAndReplaceAscii("%3", UniString::CreateFromInt32(nCol + 1));
-#ifndef PRODUCT
+#ifdef DBG_UTIL
aStr += UniString( RTL_CONSTASCII_USTRINGPARAM( ", Level " ) );
aStr += UniString::CreateFromInt32( pTextEditOutliner->GetDepth( aSel.nEndPara ) );
#endif
diff --git a/svx/source/svrtf/rtfgrf.cxx b/svx/source/svrtf/rtfgrf.cxx
index c387fdf7e9..4262daac92 100644
--- a/svx/source/svrtf/rtfgrf.cxx
+++ b/svx/source/svrtf/rtfgrf.cxx
@@ -44,7 +44,7 @@
#include "svxrtf.hxx"
-#ifdef PRODUCT
+#ifndef DBG_UTIL
#undef DEBUG_JP
#endif
diff --git a/svx/source/svxlink/fileobj.cxx b/svx/source/svxlink/fileobj.cxx
index a97efb3d70..14cffa9771 100644
--- a/svx/source/svxlink/fileobj.cxx
+++ b/svx/source/svxlink/fileobj.cxx
@@ -422,7 +422,7 @@ BOOL SvFileObject::GetGraphic_Impl( Graphic& rGrf, SvStream* pStream )
if( pStream && ERRCODE_IO_PENDING == pStream->GetError() )
pStream->ResetError();
-#ifndef PRODUCT
+#ifdef DBG_UTIL
if( nRes )
{
if( xMed.Is() && !pStream )
diff --git a/xmloff/inc/xmloff/ProgressBarHelper.hxx b/xmloff/inc/xmloff/ProgressBarHelper.hxx
index cb1ae3ab54..69badad606 100644
--- a/xmloff/inc/xmloff/ProgressBarHelper.hxx
+++ b/xmloff/inc/xmloff/ProgressBarHelper.hxx
@@ -52,7 +52,7 @@ class XMLOFF_DLLPUBLIC ProgressBarHelper
// #96469#; if the value goes over the Range the progressbar starts again
sal_Bool bRepeat;
-#ifndef PRODUCT
+#ifdef DBG_UTIL
sal_Bool bFailure;
#endif
public:
diff --git a/xmloff/inc/xmloff/xmlexp.hxx b/xmloff/inc/xmloff/xmlexp.hxx
index 37d81a72a9..8f487b8556 100644
--- a/xmloff/inc/xmloff/xmlexp.hxx
+++ b/xmloff/inc/xmloff/xmlexp.hxx
@@ -380,7 +380,7 @@ public:
= ::rtl::OUString::createFromAscii("gen") );
// Check if common attribute list is empty.
-#ifdef PRODUCT
+#ifndef DBG_UTIL
void CheckAttrList() {}
#else
void CheckAttrList();
diff --git a/xmloff/source/core/ProgressBarHelper.cxx b/xmloff/source/core/ProgressBarHelper.cxx
index 94c8e2dc74..d4f7effb96 100644
--- a/xmloff/source/core/ProgressBarHelper.cxx
+++ b/xmloff/source/core/ProgressBarHelper.cxx
@@ -56,7 +56,7 @@ ProgressBarHelper::ProgressBarHelper(const ::com::sun::star::uno::Reference < ::
, fOldPercent(0.0)
, bStrict(bTempStrict)
, bRepeat(sal_True)
-#ifndef PRODUCT
+#ifdef DBG_UTIL
, bFailure(sal_False)
#endif
{
@@ -130,7 +130,7 @@ void ProgressBarHelper::SetValue(sal_Int32 nTempValue)
// fOldPercent = fPercent;
// }
}
-#ifndef PRODUCT
+#ifdef DBG_UTIL
else if (!bFailure)
{
DBG_ERROR("tried to set a wrong value on the progressbar");
diff --git a/xmloff/source/core/attrlist.cxx b/xmloff/source/core/attrlist.cxx
index 86de77e4e9..bc641cbfcb 100644
--- a/xmloff/source/core/attrlist.cxx
+++ b/xmloff/source/core/attrlist.cxx
@@ -37,13 +37,6 @@
#include <rtl/uuid.h>
#include <rtl/memory.h>
-#if OSL_DEBUG_LEVEL == 0
-# ifndef NDEBUG
-# define NDEBUG
-# endif
-#endif
-#include <assert.h>
-
#include <xmloff/attrlist.hxx>
using ::rtl::OUString;
@@ -183,7 +176,7 @@ void SvXMLAttributeList::Clear()
{
m_pImpl->vecAttribute.clear();
- assert( ! getLength() );
+ OSL_ASSERT( ! getLength() );
}
void SvXMLAttributeList::RemoveAttribute( const OUString sName )
@@ -207,7 +200,7 @@ void SvXMLAttributeList::SetAttributeList( const uno::Reference< ::com::sun::sta
void SvXMLAttributeList::AppendAttributeList( const uno::Reference< ::com::sun::star::xml::sax::XAttributeList > &r )
{
- assert( r.is() );
+ OSL_ASSERT( r.is() );
sal_Int16 nMax = r->getLength();
SvXMLAttributeList_Impl::size_type nTotalSize =
@@ -220,7 +213,7 @@ void SvXMLAttributeList::AppendAttributeList( const uno::Reference< ::com::sun::
r->getValueByIndex( i )));
}
- assert( nTotalSize == (SvXMLAttributeList_Impl::size_type)getLength());
+ OSL_ASSERT( nTotalSize == (SvXMLAttributeList_Impl::size_type)getLength());
}
void SvXMLAttributeList::SetValueByIndex( sal_Int16 i,
diff --git a/xmloff/source/core/xmlerror.cxx b/xmloff/source/core/xmlerror.cxx
index d1f5bf5632..0325048ca4 100644
--- a/xmloff/source/core/xmlerror.cxx
+++ b/xmloff/source/core/xmlerror.cxx
@@ -126,7 +126,7 @@ void XMLErrors::AddRecord(
aErrors.push_back( ErrorRecord( nId, rParams, rExceptionMessage,
nRow, nColumn, rPublicId, rSystemId ) );
-#ifndef PRODUCT
+#ifdef DBG_UTIL
// give detailed assertion on this message
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index ec4d6acdb9..7733f81183 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -1055,7 +1055,7 @@ void SvXMLExport::ClearAttrList()
mpAttrList->Clear();
}
-#ifndef PRODUCT
+#ifdef DBG_UTIL
void SvXMLExport::CheckAttrList()
{
DBG_ASSERT( !mpAttrList->getLength(),
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 675c558186..bd3dac462b 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -741,7 +741,7 @@ void SAL_CALL SvXMLImport::startElement( const OUString& rName,
}
void SAL_CALL SvXMLImport::endElement( const OUString&
-#ifndef PRODUCT
+#ifdef DBG_UTIL
rName
#endif
)
@@ -755,7 +755,7 @@ rName
SvXMLImportContext *pContext = (*mpContexts)[nCount-1];
mpContexts->Remove( nCount-1, 1 );
-#ifndef PRODUCT
+#ifdef DBG_UTIL
// Non product only: check if endElement call matches startELement call.
OUString aLocalName;
USHORT nPrefix =
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index b39d29e664..7415fed326 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -559,7 +559,7 @@ void XMLShapeExport::exportShape(const uno::Reference< drawing::XShape >& xShape
const ImplXMLShapeExportInfo& aShapeInfo = aShapeInfoVector[nZIndex];
-#ifndef PRODUCT
+#ifdef DBG_UTIL
// ---------------------------------------
// check if this is the correct ShapesInfo
// ---------------------------------------
diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx
index 8d16668415..2a77dd0566 100644
--- a/xmloff/source/style/xmlstyle.cxx
+++ b/xmloff/source/style/xmlstyle.cxx
@@ -283,7 +283,7 @@ class SvXMLStylesContext_Impl
SvXMLStyleIndices_Impl *pIndices;
sal_Bool bAutomaticStyle;
-#ifndef PRODUCT
+#ifdef DBG_UTIL
sal_uInt32 nIndexCreated;
#endif
@@ -317,7 +317,7 @@ SvXMLStylesContext_Impl::SvXMLStylesContext_Impl( sal_Bool bAuto ) :
aStyles( 20, 5 ),
pIndices( 0 ),
bAutomaticStyle( bAuto )
-#ifndef PRODUCT
+#ifdef DBG_UTIL
, nIndexCreated( 0 )
#endif
{}
@@ -363,7 +363,7 @@ const SvXMLStyleContext *SvXMLStylesContext_Impl::FindStyleChildContext(
if( !pIndices && bCreateIndex && aStyles.Count() > 0 )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
DBG_ASSERT( 0==nIndexCreated,
"Performance warning: sdbcx::Index created multiple times" );
#endif
@@ -379,7 +379,7 @@ const SvXMLStyleContext *SvXMLStylesContext_Impl::FindStyleChildContext(
delete pStyleIndex;
}
}
-#ifndef PRODUCT
+#ifdef DBG_UTIL
((SvXMLStylesContext_Impl *)this)->nIndexCreated++;
#endif
}
diff --git a/xmloff/source/text/XMLIndexTOCContext.cxx b/xmloff/source/text/XMLIndexTOCContext.cxx
index 497a178760..e3b796d44e 100644
--- a/xmloff/source/text/XMLIndexTOCContext.cxx
+++ b/xmloff/source/text/XMLIndexTOCContext.cxx
@@ -220,7 +220,7 @@ void XMLIndexTOCContext::StartElement(
// index
// preliminaries
-#ifdef PRODUCT
+#ifndef DBG_UTIL
OUString sMarker(RTL_CONSTASCII_USTRINGPARAM(" "));
#else
OUString sMarker(RTL_CONSTASCII_USTRINGPARAM("Y"));
diff --git a/xmloff/source/text/XMLSectionImportContext.cxx b/xmloff/source/text/XMLSectionImportContext.cxx
index 3f916db8e0..62f49620fb 100644
--- a/xmloff/source/text/XMLSectionImportContext.cxx
+++ b/xmloff/source/text/XMLSectionImportContext.cxx
@@ -226,7 +226,7 @@ void XMLSectionImportContext::StartElement(
// last paragraph (and marker) when closing a section.
Reference<XTextRange> xStart =
rHelper->GetCursor()->getStart();
-#ifdef PRODUCT
+#ifndef DBG_UTIL
static const sal_Char sMarker[] = " ";
#else
static const sal_Char sMarker[] = "X";
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index 3cc372f171..18b7325c77 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -2837,7 +2837,7 @@ sal_Bool XMLTextFieldExport::ExplodeFieldMasterName(
sal_Int32 nSeparator = sMasterName.indexOf('.', nLength);
sal_Bool bReturn = sal_True;
-#ifndef PRODUCT
+#ifdef DBG_UTIL
// check for service name
bReturn &= (0 == sFieldMasterPrefix.compareTo(sMasterName, nLength));
#endif
diff --git a/xmloff/source/text/txtimppr.cxx b/xmloff/source/text/txtimppr.cxx
index 34f1ca038f..218f2fa793 100644
--- a/xmloff/source/text/txtimppr.cxx
+++ b/xmloff/source/text/txtimppr.cxx
@@ -218,7 +218,7 @@ void XMLTextImportPropertyMapper::FontDefaultsCheck(
if( !pFontStyleName )
{
aAny <<= sEmpty;
- #ifndef PRODUCT
+ #ifdef DBG_UTIL
sal_Int16 nTmp = getPropertySetMapper()->GetEntryContextId(
pFontFamilyName->mnIndex + 1 );
DBG_ASSERT( nTmp == CTF_FONTSTYLENAME || nTmp == CTF_FONTSTYLENAME_CJK || nTmp == CTF_FONTSTYLENAME_CTL,
@@ -232,7 +232,7 @@ void XMLTextImportPropertyMapper::FontDefaultsCheck(
{
aAny <<= (sal_Int16)com::sun::star::awt::FontFamily::DONTKNOW;
- #ifndef PRODUCT
+ #ifdef DBG_UTIL
sal_Int16 nTmp = getPropertySetMapper()->GetEntryContextId(
pFontFamilyName->mnIndex + 2 );
DBG_ASSERT( nTmp == CTF_FONTFAMILY || nTmp == CTF_FONTFAMILY_CJK || nTmp == CTF_FONTFAMILY_CTL,
@@ -245,7 +245,7 @@ void XMLTextImportPropertyMapper::FontDefaultsCheck(
if( !pFontPitch )
{
aAny <<= (sal_Int16)com::sun::star::awt::FontPitch::DONTKNOW;
- #ifndef PRODUCT
+ #ifdef DBG_UTIL
sal_Int16 nTmp = getPropertySetMapper()->GetEntryContextId(
pFontFamilyName->mnIndex + 3 );
DBG_ASSERT( nTmp == CTF_FONTPITCH || nTmp == CTF_FONTPITCH_CJK || nTmp == CTF_FONTPITCH_CTL,
@@ -258,7 +258,7 @@ void XMLTextImportPropertyMapper::FontDefaultsCheck(
if( !pFontCharSet )
{
aAny <<= (sal_Int16)gsl_getSystemTextEncoding();
- #ifndef PRODUCT
+ #ifdef DBG_UTIL
sal_Int16 nTmp = getPropertySetMapper()->GetEntryContextId(
pFontFamilyName->mnIndex + 4 );
DBG_ASSERT( nTmp == CTF_FONTCHARSET || nTmp == CTF_FONTCHARSET_CJK || nTmp == CTF_FONTCHARSET_CTL,
@@ -408,7 +408,7 @@ void XMLTextImportPropertyMapper::finished(
{
if( pAllBorderDistance && !pBorderDistances[i] )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
sal_Int16 nTmp = getPropertySetMapper()->GetEntryContextId(
pAllBorderDistance->mnIndex + i + 1 );
DBG_ASSERT( nTmp >= CTF_LEFTBORDERDISTANCE &&
@@ -422,7 +422,7 @@ void XMLTextImportPropertyMapper::finished(
}
if( pAllBorder && !pBorders[i] )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
sal_Int16 nTmp = getPropertySetMapper()->GetEntryContextId(
pAllBorder->mnIndex + i + 1 );
DBG_ASSERT( nTmp >= CTF_LEFTBORDER && nTmp <= CTF_BOTTOMBORDER,
@@ -461,7 +461,7 @@ void XMLTextImportPropertyMapper::finished(
{
if( !pBorderDistances[i] )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
sal_Int16 nTmp = getPropertySetMapper()->GetEntryContextId(
pBorders[i]->mnIndex + 5 );
DBG_ASSERT( nTmp >= CTF_LEFTBORDERDISTANCE &&
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 7f68b3d0b4..81562c5f65 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -265,7 +265,7 @@ SV_IMPL_PTRARR( OUStrings_Impl, OUStringPtr )
SV_DECL_PTRARR_SORT_DEL( OUStringsSort_Impl, OUStringPtr, 20, 10 )
SV_IMPL_OP_PTRARR_SORT( OUStringsSort_Impl, OUStringPtr )
-#ifndef PRODUCT
+#ifdef DBG_UTIL
static int txtparae_bContainsIllegalCharacters = sal_False;
#endif
@@ -1294,7 +1294,7 @@ XMLTextParagraphExport::~XMLTextParagraphExport()
// delete pExportedLists;
// <--
delete pListAutoPool;
-#ifndef PRODUCT
+#ifdef DBG_UTIL
txtparae_bContainsIllegalCharacters = sal_False;
#endif
// --> OD 2008-04-25 #refactorlists#
@@ -3371,7 +3371,7 @@ void XMLTextParagraphExport::exportText( const OUString& rText,
default:
if( cChar < 0x0020 )
{
-#ifndef PRODUCT
+#ifdef DBG_UTIL
OSL_ENSURE( txtparae_bContainsIllegalCharacters ||
cChar >= 0x0020,
"illegal character in text content" );
diff --git a/xmloff/source/transform/StyleOOoTContext.cxx b/xmloff/source/transform/StyleOOoTContext.cxx
index 544c05b56d..243b94f338 100644
--- a/xmloff/source/transform/StyleOOoTContext.cxx
+++ b/xmloff/source/transform/StyleOOoTContext.cxx
@@ -352,7 +352,7 @@ XMLTypedPropertiesOOoTContext_Impl
++i;
}
-#ifndef PRODUCT
+#ifdef DBG_UTIL
if( !( XML_NAMESPACE_NONE == nPrefix ||
(XML_NAMESPACE_UNKNOWN_FLAG & nPrefix) ||
XML_PROP_TYPE_END==m_aPropTypes[1] ||
diff --git a/xmloff/source/transform/TransformerBase.cxx b/xmloff/source/transform/TransformerBase.cxx
index b1ce8c4995..95df970b58 100644
--- a/xmloff/source/transform/TransformerBase.cxx
+++ b/xmloff/source/transform/TransformerBase.cxx
@@ -337,7 +337,7 @@ void SAL_CALL XMLTransformerBase::startElement( const OUString& rName,
}
void SAL_CALL XMLTransformerBase::endElement( const OUString&
-#ifndef PRODUCT
+#ifdef DBG_UTIL
rName
#endif
)
@@ -348,7 +348,7 @@ rName
// Get topmost context
::rtl::Reference< XMLTransformerContext > xContext = m_pContexts->back();
-#ifndef PRODUCT
+#ifdef DBG_UTIL
OSL_ENSURE( xContext->GetQName() == rName,
"XMLTransformerBase::endElement: popped context has wrong lname" );
#endif