summaryrefslogtreecommitdiff
path: root/svtools/source/misc/embedhlp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/misc/embedhlp.cxx')
-rw-r--r--svtools/source/misc/embedhlp.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index c7d0e4d82c01..d339b22d3b0c 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -52,6 +52,7 @@
#include <com/sun/star/chart2/XDefaultSizeTransmitter.hpp>
#include <cppuhelper/implbase.hxx>
#include <vcl/svapp.hxx>
+#include <tools/diagnose_ex.h>
#include <memory>
using namespace com::sun::star;
@@ -437,9 +438,9 @@ const Graphic* EmbeddedObjectRef::GetGraphic() const
else if ( !mpImpl->pGraphic )
const_cast < EmbeddedObjectRef* >(this)->GetReplacement(false);
}
- catch( const uno::Exception& ex )
+ catch( const uno::Exception& )
{
- SAL_WARN("svtools.misc", "Something went wrong on getting the graphic: " << ex);
+ DBG_UNHANDLED_EXCEPTION("svtools.misc", "Something went wrong on getting the graphic");
}
return mpImpl->pGraphic.get();
@@ -570,9 +571,9 @@ SvStream* EmbeddedObjectRef::GetGraphicStream( bool bUpdate ) const
pStream->Seek(0);
return pStream;
}
- catch (const uno::Exception& ex)
+ catch (const uno::Exception&)
{
- SAL_WARN("svtools.misc", "discarding broken embedded object preview: " << ex);
+ DBG_UNHANDLED_EXCEPTION("svtools.misc", "discarding broken embedded object preview");
delete pStream;
xStream.clear();
}