summaryrefslogtreecommitdiff
path: root/svx/source/xml
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-10-04 23:28:23 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2020-10-05 09:49:05 +0200
commit9abb853f0ae74b34ee7c5fb6a34b72a037bb317e (patch)
tree65871e440423b653b1e355d871e70e6c8e88dd17 /svx/source/xml
parent83615f4ee8c5e78fb45389b5ea3c1204625e3fe2 (diff)
use more TOOLS_WARN_EXCEPTION
Change-Id: I3e8bfdf717dd8896ab16e396f671651ca4f7f01c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103932 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/xml')
-rw-r--r--svx/source/xml/xmlxtexp.cxx5
-rw-r--r--svx/source/xml/xmlxtimp.cxx10
2 files changed, 9 insertions, 6 deletions
diff --git a/svx/source/xml/xmlxtexp.cxx b/svx/source/xml/xmlxtexp.cxx
index f9407cb46698..d16e5fc523a2 100644
--- a/svx/source/xml/xmlxtexp.cxx
+++ b/svx/source/xml/xmlxtexp.cxx
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <tools/diagnose_ex.h>
#include <tools/urlobj.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
@@ -175,7 +178,7 @@ static void initializeStreamMetadata( const uno::Reference< uno::XInterface > &x
xProps->setPropertyValue("UseCommonStoragePasswordEncryption", uno::makeAny( true ) );
} catch ( const uno::Exception & )
{
- OSL_FAIL( "exception setting stream metadata" );
+ TOOLS_WARN_EXCEPTION("svx", "exception setting stream metadata");
}
}
diff --git a/svx/source/xml/xmlxtimp.cxx b/svx/source/xml/xmlxtimp.cxx
index 75e4b97e84a5..0b7c6f8ece27 100644
--- a/svx/source/xml/xmlxtimp.cxx
+++ b/svx/source/xml/xmlxtimp.cxx
@@ -226,7 +226,7 @@ void SvxXMLTableImportContext::importMarker( const uno::Reference< XFastAttribut
}
catch (const Exception&)
{
- OSL_FAIL("SvxXMLTableImportContext::importMarker(), exception caught!");
+ TOOLS_WARN_EXCEPTION("svx", "");
}
}
@@ -239,7 +239,7 @@ void SvxXMLTableImportContext::importDash( const uno::Reference< XFastAttributeL
}
catch (const Exception&)
{
- OSL_FAIL("SvxXMLTableImportContext::importDash(), exception caught!");
+ TOOLS_WARN_EXCEPTION("svx", "");
}
}
@@ -252,7 +252,7 @@ void SvxXMLTableImportContext::importHatch( const uno::Reference< XFastAttribute
}
catch (const Exception&)
{
- OSL_FAIL("SvxXMLTableImportContext::importHatch(), exception caught!");
+ TOOLS_WARN_EXCEPTION("svx", "");
}
}
@@ -265,7 +265,7 @@ void SvxXMLTableImportContext::importGradient( const uno::Reference< XFastAttrib
}
catch (const Exception&)
{
- OSL_FAIL("SvxXMLTableImportContext::importGradient(), exception caught!");
+ TOOLS_WARN_EXCEPTION("svx", "");
}
}
@@ -285,7 +285,7 @@ void SvxXMLTableImportContext::importBitmap( const uno::Reference< XFastAttribut
}
catch (const Exception&)
{
- OSL_FAIL("SvxXMLTableImportContext::importBitmap(), exception caught!");
+ TOOLS_WARN_EXCEPTION("svx", "");
}
}