summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-02-07 21:39:27 +0100
committerMichael Stahl <mstahl@redhat.com>2017-02-07 23:02:18 +0100
commit178f5306979ef55a5682191dcdafb9e926e57cde (patch)
tree6f52dfe6b89237f3b67a31813cd26cbae0e8e1c6
parent54380811ac6a42851b1da407dc43441d4033b0ce (diff)
sfx2: if the exception thrown by filter isn't known...
... then don't silently ignore it but just abort. Evidently this cannot happen, because if it were a real possibility the author of this exception handler would have at least called SetError here. Change-Id: Iaa5f1f1d4cac388ae08214f6031a8bc279e6fceb
-rw-r--r--sfx2/source/doc/objstor.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 4135b549b7de..8c2faedbbb04 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2300,8 +2300,10 @@ bool SfxObjectShell::ImportFrom(SfxMedium& rMedium,
e.Message, ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageError ))->GetErrorCode(), "");
}
}
- catch(...)
- {}
+ catch (...)
+ {
+ std::abort(); // cannot happen
+ }
}
return false;