Kaydet (Commit) 756b7d31 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

Move bogus OSL_ASSERT(msg) to OSL_FAIL(msg)

üst 91697b75
......@@ -129,7 +129,7 @@ void OControlStyleContext::FillPropertySet(const Reference< XPropertySet > & rPr
pStyle = PTR_CAST(SvXMLNumFormatContext,pMyStyles->
FindStyleChildContext(XML_STYLE_FAMILY_DATA_STYLE, m_sDataStyleName, sal_True));
else {
OSL_ASSERT("not possible to get style");
OSL_FAIL("not possible to get style");
}
}
if ( pStyle )
......
......@@ -2077,7 +2077,7 @@ void GeometryHandler::impl_initFieldList_nothrow( uno::Sequence< ::rtl::OUString
}
catch (uno::Exception&)
{
OSL_ASSERT( "GeometryHandler::impl_initFieldList_nothrow: caught an exception!" );
OSL_FAIL( "GeometryHandler::impl_initFieldList_nothrow: caught an exception!" );
}
}
// -----------------------------------------------------------------------------
......
......@@ -194,7 +194,7 @@ xub_StrLen FunctionDescription::getSuppressedArgumentCount() const
}
catch(const uno::Exception&)
{
OSL_ASSERT("Exception caught!");
OSL_FAIL("Exception caught!");
}
return sFormula;
}
......
......@@ -126,7 +126,7 @@ PropBrw::PropBrw(const Reference< XMultiServiceFactory >& _xORB,Window* pParen
}
catch (Exception&)
{
OSL_ASSERT("PropBrw::PropBrw: could not create/initialize my frame!");
OSL_FAIL("PropBrw::PropBrw: could not create/initialize my frame!");
m_xMeAsFrame.clear();
}
......@@ -179,7 +179,7 @@ PropBrw::PropBrw(const Reference< XMultiServiceFactory >& _xORB,Window* pParen
}
catch (Exception&)
{
OSL_ASSERT("PropBrw::PropBrw: could not create/initialize the browser controller!");
OSL_FAIL("PropBrw::PropBrw: could not create/initialize the browser controller!");
try
{
::comphelper::disposeComponent(m_xBrowserController);
......@@ -562,7 +562,7 @@ void PropBrw::Update( OSectionView* pNewView )
}
catch ( Exception& )
{
OSL_ASSERT( "PropBrw::Update: Exception occurred!" );
OSL_FAIL( "PropBrw::Update: Exception occurred!" );
}
}
//----------------------------------------------------------------------------
......@@ -584,7 +584,7 @@ void PropBrw::Update( const uno::Reference< uno::XInterface>& _xReportComponent)
}
catch ( Exception& )
{
OSL_ASSERT( "PropBrw::Update: Exception occurred!" );
OSL_FAIL( "PropBrw::Update: Exception occurred!" );
}
}
}
......
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