summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docinsert.cxx
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 /sfx2/source/doc/docinsert.cxx
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 'sfx2/source/doc/docinsert.cxx')
-rw-r--r--sfx2/source/doc/docinsert.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/doc/docinsert.cxx b/sfx2/source/doc/docinsert.cxx
index 19649cc26ff9..1cff1409d723 100644
--- a/sfx2/source/doc/docinsert.cxx
+++ b/sfx2/source/doc/docinsert.cxx
@@ -40,6 +40,7 @@
#include <svl/stritem.hxx>
#include <memory>
#include <osl/diagnose.h>
+#include <tools/diagnose_ex.h>
using namespace ::com::sun::star;
using namespace ::com::sun::star::lang;
@@ -240,7 +241,7 @@ IMPL_LINK_NOARG(DocumentInserter, DialogClosedHdl, sfx2::FileDialogHelper*, void
}
catch( const IllegalArgumentException& )
{
- OSL_FAIL( "FileDialogHelper_Impl::execute: caught an IllegalArgumentException!" );
+ TOOLS_WARN_EXCEPTION( "sfx.doc", "FileDialogHelper_Impl::execute: caught an IllegalArgumentException!" );
}
}
@@ -261,7 +262,7 @@ IMPL_LINK_NOARG(DocumentInserter, DialogClosedHdl, sfx2::FileDialogHelper*, void
}
catch( const IllegalArgumentException& )
{
- OSL_FAIL( "FileDialogHelper_Impl::execute: caught an IllegalArgumentException!" );
+ TOOLS_WARN_EXCEPTION( "sfx.doc", "FileDialogHelper_Impl::execute: caught an IllegalArgumentException!" );
}
}
}