diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 14:27:45 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-13 16:50:43 +0100 |
commit | 1848de2f4cce84862cf0843e15f38ce5d1f26108 (patch) | |
tree | 38d3983e56f5d2c900c24750e0050556435cfd6b /shell | |
parent | e4d0bb122a93d243067814b9d43f9c9ab1e4df65 (diff) |
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file_handler.cxx | 6 | ||||
-rw-r--r-- | shell/source/win32/simplemail/senddoc.cxx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file_handler.cxx b/shell/source/unix/sysshell/recently_used_file_handler.cxx index 1ef8c621dd3b..b34bb3ad81a3 100644 --- a/shell/source/unix/sysshell/recently_used_file_handler.cxx +++ b/shell/source/unix/sysshell/recently_used_file_handler.cxx @@ -513,15 +513,15 @@ extern "C" void add_to_recently_used_file_list(const rtl::OUString& file_url, co } catch(const char* ex) { - OSL_ENSURE(false, ex); + OSL_FAIL(ex); } catch(const xml_parser_exception&) { - OSL_ENSURE(false, "XML parser error"); + OSL_FAIL("XML parser error"); } catch(const unknown_xml_format_exception&) { - OSL_ENSURE(false, "XML format unknown"); + OSL_FAIL("XML format unknown"); } } diff --git a/shell/source/win32/simplemail/senddoc.cxx b/shell/source/win32/simplemail/senddoc.cxx index 78f69d3200c2..c03ae66635b9 100644 --- a/shell/source/win32/simplemail/senddoc.cxx +++ b/shell/source/win32/simplemail/senddoc.cxx @@ -221,7 +221,7 @@ void initParameter(int argc, char* argv[]) { if (!isKnownParameter(argv[i])) { - OSL_ENSURE(false, "Wrong parameter received"); + OSL_FAIL("Wrong parameter received"); continue; } @@ -324,7 +324,7 @@ int main(int argc, char* argv[]) #endif ) { - OSL_ENSURE(false, ex.what()); + OSL_FAIL(ex.what()); } return ulRet; } |