summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-13 13:08:04 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-13 13:08:04 +0000
commit34c6645384e05d19ea0801165beb87b8a62c854f (patch)
tree5986e1093cd013e7991f32a17997a3bdfb3a2281 /shell
parenta00668e368656383938cf588fd48ded4b9aaa287 (diff)
INTEGRATION: CWS obr09 (1.11.10); FILE MERGED
2008/05/28 10:28:22 obr 1.11.10.1: #i78096# do not throw exception on end tags w/o start tag
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/sysshell/recently_used_file_handler.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file_handler.cxx b/shell/source/unix/sysshell/recently_used_file_handler.cxx
index b302dcc34b..5d79868ecc 100644
--- a/shell/source/unix/sysshell/recently_used_file_handler.cxx
+++ b/shell/source/unix/sysshell/recently_used_file_handler.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: recently_used_file_handler.cxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
* This file is part of OpenOffice.org.
*
@@ -237,8 +237,6 @@ namespace /* private */ {
//########################################
// thrown if we encounter xml tags that we do not know
class unknown_xml_format_exception {};
- // thrown if we encounter an end tag without matching start tag
- class end_tag_without_start_tag_exception {};
//########################################
class recently_used_file_filter : public i_xml_parser_event_handler
@@ -269,8 +267,9 @@ namespace /* private */ {
virtual void end_element(const string_t& /*raw_name*/, const string_t& local_name)
{
+ // check for end tags w/o start tag
if( local_name != TAG_RECENT_FILES && NULL == item_ )
- throw end_tag_without_start_tag_exception();
+ return; // will result in an XML parser error anyway
if (named_command_map_.find(local_name) != named_command_map_.end())
(item_->*named_command_map_[local_name])(current_element_);
@@ -547,9 +546,5 @@ extern "C" void add_to_recently_used_file_list(const rtl::OUString& file_url, co
{
OSL_ENSURE(false, "XML format unknown");
}
- catch(const end_tag_without_start_tag_exception&)
- {
- OSL_ENSURE(false, "XML file damaged");
- }
}