|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56739 - trunk/libs/serialization/src
From: ramey_at_[hidden]
Date: 2009-10-12 12:29:38
Author: ramey
Date: 2009-10-12 12:29:37 EDT (Mon, 12 Oct 2009)
New Revision: 56739
URL: http://svn.boost.org/trac/boost/changeset/56739
Log:
Eliminate redundancy
Text files modified:
trunk/libs/serialization/src/basic_xml_grammar.ipp | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
Modified: trunk/libs/serialization/src/basic_xml_grammar.ipp
==============================================================================
--- trunk/libs/serialization/src/basic_xml_grammar.ipp (original)
+++ trunk/libs/serialization/src/basic_xml_grammar.ipp 2009-10-12 12:29:37 EDT (Mon, 12 Oct 2009)
@@ -192,32 +192,17 @@
bool basic_xml_grammar<CharType>::parse_start_tag(
BOOST_DEDUCED_TYPENAME basic_xml_grammar<CharType>::IStream & is
){
- if(is.fail()){
- boost::serialization::throw_exception(
- archive_exception(archive_exception::stream_error)
- );
- }
rv.class_name.resize(0);
return my_parse(is, STag);
}
template<class CharType>
bool basic_xml_grammar<CharType>::parse_end_tag(IStream & is) const {
- if(is.fail()){
- boost::serialization::throw_exception(
- archive_exception(archive_exception::stream_error)
- );
- }
return my_parse(is, ETag);
}
template<class CharType>
bool basic_xml_grammar<CharType>::parse_string(IStream & is, StringType & s){
- if(is.fail()){
- boost::serialization::throw_exception(
- archive_exception(archive_exception::stream_error)
- );
- }
rv.contents.resize(0);
bool result = my_parse(is, content, '<');
// note: unget caused a problem with dinkumware. replace with
@@ -451,7 +436,7 @@
void basic_xml_grammar<CharType>::windup(IStream & is){
if(is.fail())
return;
- // uh-oh - don't exception from code called by a destructor !
+ // uh-oh - don't throw exception from code called by a destructor !
// so just ignore any failure.
my_parse(is, ETag);
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk