summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 19:09:12 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-02 15:06:08 +0100
commitb59db0e69e83d694f6cb0bade4f567fe0da536a5 (patch)
tree05805d98ed0d80f75ce07177241ff04cbe7caa1d /starmath
parent4098e3e81f28b0e89003037117dd2710f31e6a49 (diff)
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/accessibility.cxx2
-rw-r--r--starmath/source/cfgitem.cxx2
-rw-r--r--starmath/source/document.cxx2
-rw-r--r--starmath/source/format.cxx2
-rw-r--r--starmath/source/mathmlexport.cxx2
-rw-r--r--starmath/source/mathmlimport.cxx2
-rw-r--r--starmath/source/node.cxx4
-rw-r--r--starmath/source/rect.cxx2
-rw-r--r--starmath/source/symbol.cxx2
-rw-r--r--starmath/source/toolbox.cxx4
-rw-r--r--starmath/source/view.cxx6
-rw-r--r--starmath/source/visitors.cxx2
12 files changed, 16 insertions, 16 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index 1d48e6492beb..c53319e2cfe1 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -1033,7 +1033,7 @@ SfxItemSet SmTextForwarder::GetAttribs( const ESelection& rSel, BOOL bOnlyHardAt
nFlags = GETATTRIBS_CHARATTRIBS;
break;
default:
- DBG_ERROR("unknown flags for SmTextForwarder::GetAttribs");
+ OSL_FAIL("unknown flags for SmTextForwarder::GetAttribs");
}
return pEditEngine->GetAttribs( rSel.nStartPara, rSel.nStartPos, rSel.nEndPos, nFlags );
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx
index ed435d880b22..474b1abed5d0 100644
--- a/starmath/source/cfgitem.cxx
+++ b/starmath/source/cfgitem.cxx
@@ -544,7 +544,7 @@ void SmMathConfig::ReadSymbol( SmSym &rSymbol,
}
else
{
- DBG_ERROR( "symbol read error" );
+ OSL_FAIL( "symbol read error" );
}
}
}
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 494b2d8d63c9..1e8e4f9e05e9 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -273,7 +273,7 @@ void SmDocShell::ArrangeFormula()
if (!pOutDev)
{
#if OSL_DEBUG_LEVEL > 1
- DBG_ERROR("!! SmDocShell::ArrangeFormula: reference device missing !!");
+ OSL_FAIL("!! SmDocShell::ArrangeFormula: reference device missing !!");
#endif
}
diff --git a/starmath/source/format.cxx b/starmath/source/format.cxx
index 744ebb8061b7..77d543d61e76 100644
--- a/starmath/source/format.cxx
+++ b/starmath/source/format.cxx
@@ -97,7 +97,7 @@ String GetDefaultFontName( LanguageType nLang, USHORT nIdent )
case SCRIPTTYPE_COMPLEX : pTable = aCTLDefFnts; break;
default :
pTable = aLatinDefFnts;
- DBG_ERROR( "unknown script-type" );
+ OSL_FAIL( "unknown script-type" );
}
return Application::GetDefaultDevice()->GetDefaultFont(
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index cbad3cc1639a..30bf7eb26017 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -344,7 +344,7 @@ sal_Bool SmXMLExportWrapper::WriteThroughComponent(
}
catch ( uno::Exception& )
{
- DBG_ERROR( "Can't create output stream in package!" );
+ OSL_FAIL( "Can't create output stream in package!" );
return sal_False;
}
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index fbf6a2bc9d08..b1b99d75817d 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -3007,7 +3007,7 @@ void SmXMLImport::SetConfigurationSettings(const Sequence<PropertyValue>& aConfP
}
catch( Exception& )
{
- DBG_ERROR( "SmXMLImport::SetConfigurationSettings: Exception!" );
+ OSL_FAIL( "SmXMLImport::SetConfigurationSettings: Exception!" );
}
}
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index adc27acb48ed..e80afcab0006 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -93,7 +93,7 @@ SmTmpDevice::SmTmpDevice(OutputDevice &rTheDev, bool bUseMap100th_mm) :
PUSH_LINECOLOR | PUSH_FILLCOLOR | PUSH_TEXTCOLOR );
if (bUseMap100th_mm && MAP_100TH_MM != rOutDev.GetMapMode().GetMapUnit())
{
- DBG_ERROR( "incorrect MapMode?" );
+ OSL_FAIL( "incorrect MapMode?" );
rOutDev.SetMapMode( MAP_100TH_MM ); //Immer fuer 100% fomatieren
}
}
@@ -512,7 +512,7 @@ const SmNode * SmNode::FindRectClosestTo(const Point &rPoint) const
void SmNode::GetAccessibleText( String &/*rText*/ ) const
{
- DBG_ERROR( "SmNode: GetAccessibleText not overloaded" );
+ OSL_FAIL( "SmNode: GetAccessibleText not overloaded" );
}
const SmNode * SmNode::FindNodeWithAccessibleIndex(xub_StrLen nAccIdx) const
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx
index b1a804bce94b..710906eb9a5d 100644
--- a/starmath/source/rect.cxx
+++ b/starmath/source/rect.cxx
@@ -193,7 +193,7 @@ void SmRect::BuildRect(const OutputDevice &rDev, const SmFormat *pFormat,
#if OSL_DEBUG_LEVEL > 1
if (!bSuccess)
{
- DBG_ERROR( "Sm : Ooops... (fehlt evtl. der Font?)");
+ OSL_FAIL( "Sm : Ooops... (fehlt evtl. der Font?)");
}
#endif
diff --git a/starmath/source/symbol.cxx b/starmath/source/symbol.cxx
index 7e2c3b485d1d..9bc46b67eb53 100644
--- a/starmath/source/symbol.cxx
+++ b/starmath/source/symbol.cxx
@@ -276,7 +276,7 @@ void SmSymbolManager::Load()
if (0 == nSymbolCount)
{
- DBG_ERROR( "no symbol set found" );
+ OSL_FAIL( "no symbol set found" );
m_bModified = false;
}
diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx
index 214fd74c92f2..a7645cb9b703 100644
--- a/starmath/source/toolbox.cxx
+++ b/starmath/source/toolbox.cxx
@@ -61,7 +61,7 @@ static USHORT GetImageListRID( USHORT nCategoryRID )
case RID_FORMAT_CAT : nRes = RID_IL_FORMAT; break;
case RID_MISC_CAT : nRes = RID_IL_MISC; break;
default :
- DBG_ERROR( "unkown category" );
+ OSL_FAIL( "unkown category" );
}
return nRes;
}
@@ -106,7 +106,7 @@ static USHORT GetCategoryRID( USHORT nResId )
if (nResId != RID_IL_CATALOG)
{
#if OSL_DEBUG_LEVEL > 1
- DBG_ERROR( "unkown category" );
+ OSL_FAIL( "unkown category" );
#endif
}
}
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 650f136c43a1..0df95102d564 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1478,7 +1478,7 @@ bool SmViewShell::Insert( SfxMedium& rMedium )
pEditWin->InsertText( aText );
else
{
- DBG_ERROR( "EditWindow missing" );
+ OSL_FAIL( "EditWindow missing" );
aTemp += aText;
aText = aTemp;
}
@@ -1523,7 +1523,7 @@ bool SmViewShell::InsertFrom(SfxMedium &rMedium)
pEditWin->InsertText( aText );
else
{
- DBG_ERROR( "EditWindow missing" );
+ OSL_FAIL( "EditWindow missing" );
aTemp += aText;
aText = aTemp;
}
@@ -1644,7 +1644,7 @@ void SmViewShell::Execute(SfxRequest& rReq)
}
catch (uno::Exception &)
{
- DBG_ERROR( "SmViewShell::Execute (SID_PASTEOBJECT): failed to get storage from input stream" );
+ OSL_FAIL( "SmViewShell::Execute (SID_PASTEOBJECT): failed to get storage from input stream" );
}
}
}
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index 3015765b6323..d89abb8a7955 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -496,7 +496,7 @@ SmTmpDevice2::SmTmpDevice2( OutputDevice &rTheDev, bool bUseMap100th_mm ) :
PUSH_LINECOLOR | PUSH_FILLCOLOR | PUSH_TEXTCOLOR );
if ( bUseMap100th_mm && MAP_100TH_MM != rOutDev.GetMapMode( ).GetMapUnit( ) )
{
- DBG_ERROR( "incorrect MapMode?" );
+ OSL_FAIL( "incorrect MapMode?" );
rOutDev.SetMapMode( MAP_100TH_MM ); //format for 100% always
}
}