summaryrefslogtreecommitdiff
path: root/tools/source/ref
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-03 13:01:35 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-11 23:41:05 +0100
commit5c3d61abf9167c095b821f4f492316a9cae1e3f0 (patch)
tree24a62b69400c703fa0bf4e7df57d3dba5ee5caba /tools/source/ref
parent95ceadd4174967187190ae1801aec3deb73536a5 (diff)
Move DBG_ERROR to OSL_FAIL for strings GetBuffer()
Diffstat (limited to 'tools/source/ref')
-rw-r--r--tools/source/ref/errinf.cxx4
-rw-r--r--tools/source/ref/pstm.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/source/ref/errinf.cxx b/tools/source/ref/errinf.cxx
index ce2e3f7fa36f..35cf67d3b905 100644
--- a/tools/source/ref/errinf.cxx
+++ b/tools/source/ref/errinf.cxx
@@ -217,7 +217,7 @@ static void aDspFunc(const String &rErr, const String &rAction)
aErr+= ByteString( rAction, RTL_TEXTENCODING_ASCII_US );
aErr+=" Fehler: ";
aErr+= ByteString( rErr, RTL_TEXTENCODING_ASCII_US );
- DBG_ERROR(aErr.GetBuffer());
+ OSL_FAIL(aErr.GetBuffer());
}
@@ -347,7 +347,7 @@ USHORT ErrorHandler::HandleError_Impl(
aStr += ByteString( aAction, RTL_TEXTENCODING_ASCII_US );
aStr += ByteString("\nFehler: ");
aStr += ByteString( aErr, RTL_TEXTENCODING_ASCII_US );
- DBG_ERROR( aStr.GetBuffer() );
+ OSL_FAIL( aStr.GetBuffer() );
}
else
{
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx
index 31c37b3086b6..84b21433d3da 100644
--- a/tools/source/ref/pstm.cxx
+++ b/tools/source/ref/pstm.cxx
@@ -156,7 +156,7 @@ SvPersistStream& operator >> ( SvPersistStream & rStm,
aStr += ByteString::CreateFromInt32( (long)(rStm.Tell() - nObjPos) );
aStr += ", should = ";
aStr += ByteString::CreateFromInt64(nObjLen);
- DBG_ERROR( aStr.GetBuffer() );
+ OSL_FAIL( aStr.GetBuffer() );
}
#else
(void)nObjLen;
@@ -792,7 +792,7 @@ UINT32 SvPersistStream::ReadObj
aStr += ByteString::CreateFromInt32( (long)(Tell() - nObjPos) );
aStr += ", should = ";
aStr += ByteString::CreateFromInt32( nObjLen );
- DBG_ERROR( aStr.GetBuffer() );
+ OSL_FAIL( aStr.GetBuffer() );
}
#endif
rpObj->RestoreNoDelete();