summaryrefslogtreecommitdiff
path: root/xmloff/source/style/XMLPageExport.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-06-12 11:39:15 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-17 06:39:30 +0000
commite6c004dd9f24c32f5e7468182a5e8d42293ec7b6 (patch)
tree7128862b7cfe1770d07ef2b3613a52ea26b410c6 /xmloff/source/style/XMLPageExport.cxx
parent9c79945ca62b18213728cdd23d9f390304aee1de (diff)
convert DBG_ASSERT in xmloff
Change-Id: I2f4bbbef451026fc34638e17fa29b6db2c14d850 Reviewed-on: https://gerrit.libreoffice.org/26191 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/style/XMLPageExport.cxx')
-rw-r--r--xmloff/source/style/XMLPageExport.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/style/XMLPageExport.cxx b/xmloff/source/style/XMLPageExport.cxx
index 0eee93743e7b..1328735cc296 100644
--- a/xmloff/source/style/XMLPageExport.cxx
+++ b/xmloff/source/style/XMLPageExport.cxx
@@ -60,7 +60,7 @@ void XMLPageExport::collectPageMasterAutoStyle(
const Reference < XPropertySet > & rPropSet,
OUString& rPageMasterName )
{
- DBG_ASSERT( xPageMasterPropSetMapper.is(), "page master family/XMLPageMasterPropSetMapper not found" );
+ SAL_WARN_IF( !xPageMasterPropSetMapper.is(), "xmloff", "page master family/XMLPageMasterPropSetMapper not found" );
if( xPageMasterPropSetMapper.is() )
{
::std::vector<XMLPropertyState> aPropStates = xPageMasterExportPropMapper->Filter( rPropSet );
@@ -168,12 +168,12 @@ XMLPageExport::XMLPageExport( SvXMLExport& rExp ) :
Reference< XStyleFamiliesSupplier > xFamiliesSupp( GetExport().GetModel(),
UNO_QUERY );
- DBG_ASSERT( xFamiliesSupp.is(),
+ SAL_WARN_IF( !xFamiliesSupp.is(), "xmloff",
"No XStyleFamiliesSupplier from XModel for export!" );
if( xFamiliesSupp.is() )
{
Reference< XNameAccess > xFamilies( xFamiliesSupp->getStyleFamilies() );
- DBG_ASSERT( xFamiliesSupp.is(),
+ SAL_WARN_IF( !xFamiliesSupp.is(), "xmloff",
"getStyleFamilies() from XModel failed for export!" );
if( xFamilies.is() )
{
@@ -183,7 +183,7 @@ XMLPageExport::XMLPageExport( SvXMLExport& rExp ) :
{
xPageStyles.set(xFamilies->getByName( aPageStyleName ),uno::UNO_QUERY);
- DBG_ASSERT( xPageStyles.is(),
+ SAL_WARN_IF( !xPageStyles.is(), "xmloff",
"Page Styles not found for export!" );
}
}