summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2010-11-25 17:08:45 +0100
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2010-11-25 17:12:34 +0100
commitc16ba8a04fd4599e439e7e039705e41691c43acb (patch)
tree66a1c67973a674245548e10ff0746d1e473a7703 /sw/source/ui
parente9eaf033646695987e218907a565b555b976c5c8 (diff)
Removed DBG_UTIL from sw
* Fixed the different dbglevel builds * This needed to change all the sw local ASSERT to OSL_ENSURE...
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx2
-rw-r--r--sw/source/ui/dbui/mmoutputpage.cxx2
-rw-r--r--sw/source/ui/dialog/swdlgfact.cxx2
-rw-r--r--sw/source/ui/docvw/edtwin.cxx6
-rw-r--r--sw/source/ui/docvw/srcedtw.cxx6
-rw-r--r--sw/source/ui/shells/drwtxtsh.cxx2
-rw-r--r--sw/source/ui/table/swtablerep.cxx2
-rw-r--r--sw/source/ui/table/tabledlg.cxx12
8 files changed, 16 insertions, 18 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 0be0c4e21f2c..068da50c985f 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -1186,7 +1186,9 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
#endif
)
{
+#if OSL_DEBUG_LEVEL > 1
OSL_ENSURE(false, ByteString(String(aExcept.Message), gsl_getSystemTextEncoding()).GetBuffer());
+#endif
}
}
diff --git a/sw/source/ui/dbui/mmoutputpage.cxx b/sw/source/ui/dbui/mmoutputpage.cxx
index ac13484457bc..78cc8bab51a7 100644
--- a/sw/source/ui/dbui/mmoutputpage.cxx
+++ b/sw/source/ui/dbui/mmoutputpage.cxx
@@ -1221,9 +1221,9 @@ IMPL_LINK(SwMailMergeOutputPage, SendDocumentsHdl_Impl, PushButton*, pButton)
#if OSL_DEBUG_LEVEL > 1
sal_Int32 nTarget =
-#endif
rConfigItem.MoveResultSet(rInfo.nDBRow);
OSL_ENSURE( nTarget == rInfo.nDBRow, "row of current document could not be selected");
+#endif
OSL_ENSURE( sEMailColumn.Len(), "No email column selected");
::rtl::OUString sEMail = lcl_GetColumnValueOf(sEMailColumn, xColAccess);
SwMailDescriptor aDesc;
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx
index 50b2677601f4..9f3cb5a8db18 100644
--- a/sw/source/ui/dialog/swdlgfact.cxx
+++ b/sw/source/ui/dialog/swdlgfact.cxx
@@ -589,7 +589,9 @@ IMPL_LINK( AbstractMailMergeWizard_Impl, EndDialogHdl, SwMailMergeWizard*, pDial
IMPL_LINK( AbstractMailMergeWizard_Impl, EndDialogHdl, SwMailMergeWizard*, EMPTYARG )
#endif
{
+#if OSL_DEBUG_LEVEL > 1
OSL_ENSURE( pDialog == pDlg, "wrong dialog passed to EndDialogHdl!" );
+#endif
aEndDlgHdl.Call( this );
aEndDlgHdl = Link();
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 8b71b713069e..f1d024726c0f 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -140,12 +140,6 @@
#include <PostItMgr.hxx>
-//JP 11.10.2001: enable test code for bug fix 91313
-//TODO: This one could most probably be removed
-#if defined(DBG_UTIL) && (OSL_DEBUG_LEVEL > 1)
-//#define TEST_FOR_BUG91313
-#endif
-
using namespace sw::mark;
using namespace ::com::sun::star;
diff --git a/sw/source/ui/docvw/srcedtw.cxx b/sw/source/ui/docvw/srcedtw.cxx
index d1e097d2d63c..aa81a30be484 100644
--- a/sw/source/ui/docvw/srcedtw.cxx
+++ b/sw/source/ui/docvw/srcedtw.cxx
@@ -763,13 +763,13 @@ void SwSrcEditWindow::ImpDoHighlight( const String& rSource, USHORT nLineOff )
// optimiert das die TextEngine.
USHORT nLastEnd = 0;
-#if OSL_DEBUG_LEVEL > 1
- USHORT nLine = aPortionList[0].nLine;
-#endif
for ( USHORT i = 0; i < nCount; i++ )
{
SwTextPortion& r = aPortionList[i];
+#if OSL_DEBUG_LEVEL > 1
+ USHORT nLine = aPortionList[0].nLine;
OSL_ENSURE( r.nLine == nLine, "doch mehrere Zeilen ?" );
+#endif
if ( r.nStart > r.nEnd ) // Nur bis Bug von MD behoeben
continue;
diff --git a/sw/source/ui/shells/drwtxtsh.cxx b/sw/source/ui/shells/drwtxtsh.cxx
index 55d270675ac0..99632ad2de45 100644
--- a/sw/source/ui/shells/drwtxtsh.cxx
+++ b/sw/source/ui/shells/drwtxtsh.cxx
@@ -158,7 +158,7 @@ __EXPORT SwDrawTextShell::~SwDrawTextShell()
//Dann wird vor dem Flush wieder ein DrawTextShell gepusht und der Mode ist
//eingeschaltet. In diesem Moment wird der Dispatcher geflusht und die alte
//DrawTextShell zerstoert.
-// ASSERT( !pSdrView->IsTextEdit(), "TextEdit in DTor DrwTxtSh?" );
+// OSL_ENSURE( !pSdrView->IsTextEdit(), "TextEdit in DTor DrwTxtSh?" );
// if (pSdrView->IsTextEdit())
// GetShell().EndTextEdit(); // Danebengeklickt, Ende mit Edit
diff --git a/sw/source/ui/table/swtablerep.cxx b/sw/source/ui/table/swtablerep.cxx
index 4a008bd43ef3..0606f653ff7e 100644
--- a/sw/source/ui/table/swtablerep.cxx
+++ b/sw/source/ui/table/swtablerep.cxx
@@ -77,7 +77,7 @@ void DbgTColumn(TColumn* pTColumn, USHORT nCount)
String sMsg(i);
sMsg += pTColumn[i].bVisible ? " v " : " h ";
sMsg += pTColumn[i].nWidth;
- OSL_ENSURE(false, sMsg)
+ OSL_ENSURE(false, sMsg);
}
}
#endif
diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx
index 3aba3fa7e872..b58b2154a84c 100644
--- a/sw/source/ui/table/tabledlg.cxx
+++ b/sw/source/ui/table/tabledlg.cxx
@@ -81,8 +81,8 @@ using namespace ::com::sun::star;
#ifdef DEBUG_TBLDLG
void DbgTblRep(SwTableRep* pRep)
{
- OSL_ENSURE(false, String(pRep->GetColCount()))
- OSL_ENSURE(false, String(pRep->GetAllColCount()))
+ OSL_ENSURE(false, String(pRep->GetColCount()));
+ OSL_ENSURE(false, String(pRep->GetAllColCount()));
SwTwips nSum = 0;
for(USHORT i = 0; i < pRep->GetAllColCount(); i++)
{
@@ -90,23 +90,23 @@ void DbgTblRep(SwTableRep* pRep)
sMsg += pRep->GetColumns()[i].bVisible ? " v " : " h ";
sMsg += pRep->GetColumns()[i].nWidth;
nSum +=pRep->GetColumns()[i].nWidth;
- OSL_ENSURE(false, sMsg)
+ OSL_ENSURE(false, sMsg);
}
String sMsg("Column sum: ");
sMsg += nSum;
sMsg += " table width: ";
sMsg += pRep->GetWidth();
- OSL_ENSURE(false, sMsg)
+ OSL_ENSURE(false, sMsg);
sMsg = "Gesamt/Links/Rechts: ";
sMsg += pRep->GetSpace();
sMsg += '/';
sMsg += pRep->GetLeftSpace();
sMsg += '/';
sMsg += pRep->GetRightSpace();
- OSL_ENSURE(false, sMsg)
+ OSL_ENSURE(false, sMsg);
sMsg = "Align: ";
sMsg += pRep->GetAlign();
- OSL_ENSURE(false, sMsg)
+ OSL_ENSURE(false, sMsg);
};