summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-03 11:56:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-03 14:54:55 +0200
commit0e493cae407cca65f58329b3319d9c836cdf5096 (patch)
tree97e90d58ea005ec20b0197f2c1663ae6275cbd4e /xmloff
parentb76037f44660808a978ff39864769a5621eab893 (diff)
new loplugin:dbgunhandledexception
enforce that DBG_UNHANDLED_EXCEPTION is called first in a catch block, otherwise it cannot do it's job properly Change-Id: I906436c6861212c44f8f21552ccbceb54f15c6e1 Reviewed-on: https://gerrit.libreoffice.org/52303 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlimp.cxx2
-rw-r--r--xmloff/source/forms/elementexport.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index a2baf499cabd..6adabad9bb6e 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -1593,7 +1593,7 @@ void SvXMLImport::AddNumberStyle(sal_Int32 nKey, const OUString& rName)
}
}
else {
- DBG_UNHANDLED_EXCEPTION( "xmloff.core", "not possible to create NameContainer");
+ SAL_WARN( "xmloff.core", "not possible to create NameContainer");
}
}
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx
index b846ac745732..3ba0762e9623 100644
--- a/xmloff/source/forms/elementexport.cxx
+++ b/xmloff/source/forms/elementexport.cxx
@@ -1796,8 +1796,8 @@ namespace xmloff
}
catch( const Exception& )
{
- OSL_FAIL( "OControlExport::exportCellBindingAttributes: caught an exception!" );
DBG_UNHANDLED_EXCEPTION("xmloff.forms");
+ OSL_FAIL( "OControlExport::exportCellBindingAttributes: caught an exception!" );
}
}
@@ -1838,8 +1838,8 @@ namespace xmloff
}
catch( const Exception& )
{
- OSL_FAIL( "OControlExport::exportCellListSourceRange: caught an exception!" );
DBG_UNHANDLED_EXCEPTION("xmloff.forms");
+ OSL_FAIL( "OControlExport::exportCellListSourceRange: caught an exception!" );
}
}
@@ -1911,8 +1911,8 @@ namespace xmloff
}
catch( const Exception& )
{
- OSL_FAIL( "OColumnExport::controlHasActiveDataBinding: caught an exception!" );
DBG_UNHANDLED_EXCEPTION("xmloff.forms");
+ OSL_FAIL( "OColumnExport::controlHasActiveDataBinding: caught an exception!" );
}
return false;