summaryrefslogtreecommitdiff
path: root/oox/source/docprop
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-02-26 10:31:11 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-26 16:31:31 +0100
commitace98753bdf2068f9f9583b1f11381fcfe1caaf7 (patch)
treef2e0f97f1a7929ddd94f21222780e68d0a7fd77b /oox/source/docprop
parent9035896fa1954676733c205bf817b51081741b7d (diff)
Move bogus OSL_ASSERT(msg) to OSL_FAIL(msg)
Diffstat (limited to 'oox/source/docprop')
-rw-r--r--oox/source/docprop/docprophandler.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/oox/source/docprop/docprophandler.cxx b/oox/source/docprop/docprophandler.cxx
index ebdd181a7289..9bf4459f5821 100644
--- a/oox/source/docprop/docprophandler.cxx
+++ b/oox/source/docprop/docprophandler.cxx
@@ -92,7 +92,7 @@ void OOXMLDocPropHandler::AddCustomProperty( const uno::Any& aAny )
}
catch( uno::Exception& )
{
- OSL_ASSERT( "Can not add custom property!" );
+ OSL_FAIL( "Can not add custom property!" );
}
}
}
@@ -244,7 +244,7 @@ void OOXMLDocPropHandler::UpdateDocStatistic( const ::rtl::OUString& aChars )
break;
default:
- OSL_ASSERT( "Unexpected statistic!" );
+ OSL_FAIL( "Unexpected statistic!" );
break;
}
@@ -308,7 +308,7 @@ void SAL_CALL OOXMLDocPropHandler::startFastElement( ::sal_Int32 nElement, const
}
else
{
- OSL_ASSERT( "Unexpected file format!" );
+ OSL_FAIL( "Unexpected file format!" );
}
}
else if ( m_nState && m_nInBlock == 1 ) // that tag should contain the property name
@@ -327,7 +327,7 @@ void SAL_CALL OOXMLDocPropHandler::startFastElement( ::sal_Int32 nElement, const
}
else
{
- OSL_ASSERT( "For now unexpected tags are ignored!" );
+ OSL_FAIL( "For now unexpected tags are ignored!" );
}
if ( m_nInBlock == SAL_MAX_INT32 )
@@ -489,7 +489,7 @@ void SAL_CALL OOXMLDocPropHandler::characters( const ::rtl::OUString& aChars )
break;
default:
- OSL_ASSERT( "Unexpected core property!" );
+ OSL_FAIL( "Unexpected core property!" );
}
}
else if ( m_nState == ( XML_Properties|NMSP_EXTPR ) )
@@ -602,7 +602,7 @@ void SAL_CALL OOXMLDocPropHandler::characters( const ::rtl::OUString& aChars )
break;
default:
- OSL_ASSERT( "Unexpected extended property!" );
+ OSL_FAIL( "Unexpected extended property!" );
}
}
else if ( m_nState == ( XML_Properties|NMSP_CUSTPR ) )
@@ -655,7 +655,7 @@ void SAL_CALL OOXMLDocPropHandler::characters( const ::rtl::OUString& aChars )
}
else
{
- OSL_ASSERT( "Unexpected tag in custom property!" );
+ OSL_FAIL( "Unexpected tag in custom property!" );
}
}
}