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