diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-06-13 13:08:04 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-06-13 13:08:04 +0000 |
commit | ccd1031a42ca26a35d85713ef0f86faeba138b36 (patch) | |
tree | 8d7481a5fac3d49ee471f1dfc503f90f4eb18f4d /shell | |
parent | b711429c6416683e83b390a5f65a5d32dc25f555 (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.cxx | 11 |
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 9fa6dc1f441d..55f95b6e3521 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"); - } } |