summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-30 14:19:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-01 09:28:52 +0100
commitd6d80c4e1783b4459bd4a8fbcbdfeebe416c1cb5 (patch)
tree995c41a30f4224233267a8cfb05da41ae8c10275 /oox
parent102fdc08b86599b9e538d2f38df865d56b3ec63d (diff)
OSL_FAIL.*exception -> TOOLS_WARN_EXCEPTION
Change-Id: I6800e23ead2767d245d5da71d2d40e0f8a6d7e1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106859 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/helper/binarystreambase.cxx5
-rw-r--r--oox/source/ppt/slidetransition.cxx5
2 files changed, 6 insertions, 4 deletions
diff --git a/oox/source/helper/binarystreambase.cxx b/oox/source/helper/binarystreambase.cxx
index 5da64a84eb1f..a75832fa475f 100644
--- a/oox/source/helper/binarystreambase.cxx
+++ b/oox/source/helper/binarystreambase.cxx
@@ -22,6 +22,7 @@
#include <com/sun/star/io/XSeekable.hpp>
#include <osl/diagnose.h>
+#include <tools/diagnose_ex.h>
namespace oox {
@@ -72,7 +73,7 @@ sal_Int64 BinaryXSeekableStream::size() const
}
catch( Exception& )
{
- OSL_FAIL( "BinaryXSeekableStream::size - exception caught" );
+ TOOLS_WARN_EXCEPTION( "oox", "BinaryXSeekableStream::size" );
}
return -1;
}
@@ -85,7 +86,7 @@ sal_Int64 BinaryXSeekableStream::tell() const
}
catch( Exception& )
{
- OSL_FAIL( "BinaryXSeekableStream::tell - exception caught" );
+ TOOLS_WARN_EXCEPTION( "oox", "BinaryXSeekableStream::tell" );
}
return -1;
}
diff --git a/oox/source/ppt/slidetransition.cxx b/oox/source/ppt/slidetransition.cxx
index b65bd9db8b72..a5c756e62b59 100644
--- a/oox/source/ppt/slidetransition.cxx
+++ b/oox/source/ppt/slidetransition.cxx
@@ -26,6 +26,7 @@
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <tools/color.hxx>
+#include <tools/diagnose_ex.h>
#include <oox/helper/propertymap.hxx>
#include <oox/token/namespaces.hxx>
@@ -90,7 +91,7 @@ namespace oox::ppt {
catch( Exception& )
{
// should not happen
- OSL_FAIL( "exception raised" );
+ TOOLS_WARN_EXCEPTION( "oox", "" );
}
}
@@ -107,7 +108,7 @@ namespace oox::ppt {
catch( Exception& )
{
// should not happen
- OSL_FAIL( "exception raised" );
+ TOOLS_WARN_EXCEPTION( "oox", "" );
}
}