diff options
Diffstat (limited to 'sfx2/source/doc/Metadatable.cxx')
-rw-r--r-- | sfx2/source/doc/Metadatable.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/doc/Metadatable.cxx b/sfx2/source/doc/Metadatable.cxx index b12d251924f1..9f7b97bc36c7 100644 --- a/sfx2/source/doc/Metadatable.cxx +++ b/sfx2/source/doc/Metadatable.cxx @@ -28,6 +28,7 @@ #include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/lang/IllegalArgumentException.hpp> #include <comphelper/random.hxx> +#include <tools/diagnose_ex.h> #include <algorithm> #include <memory> @@ -1267,7 +1268,7 @@ void Metadatable::RemoveMetadataReference() } catch (const uno::Exception &) { - OSL_FAIL("Metadatable::RemoveMetadataReference: exception"); + TOOLS_WARN_EXCEPTION( "sfx.doc", "Metadatable::RemoveMetadataReference"); } } @@ -1424,7 +1425,7 @@ Metadatable::RegisterAsCopyOf(Metadatable const & i_rSource, } catch (const uno::Exception &) { - OSL_FAIL("Metadatable::RegisterAsCopyOf: exception"); + TOOLS_WARN_EXCEPTION( "sfx.doc", "Metadatable::RegisterAsCopyOf"); } } @@ -1448,7 +1449,7 @@ std::shared_ptr<MetadatableUndo> Metadatable::CreateUndo() const } catch (const uno::Exception &) { - OSL_FAIL("Metadatable::CreateUndo: exception"); + TOOLS_WARN_EXCEPTION( "sfx.doc", "Metadatable::CreateUndo"); } return std::shared_ptr<MetadatableUndo>(); } @@ -1518,7 +1519,7 @@ Metadatable::JoinMetadatable(Metadatable const & i_rOther, } catch (const uno::Exception &) { - OSL_FAIL("Metadatable::JoinMetadatable: exception"); + TOOLS_WARN_EXCEPTION( "sfx.doc", "Metadatable::JoinMetadatable"); } } |