summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 14:27:45 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-13 16:50:43 +0100
commit4363d620076d3624d96bdde5ad72d88065858071 (patch)
treea7da5dc94879b317210c6ca046bb252316541639 /shell
parentdbb2c4348eb885830a5588071fdf8a1d8871b89b (diff)
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/sysshell/recently_used_file_handler.cxx6
-rw-r--r--shell/source/win32/simplemail/senddoc.cxx4
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 c144dbbda5..38d15a42de 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 93e6d36acf..8b884854cb 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;
}