Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69163 - branches/quickbook-filenames/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-02-22 15:26:44


Author: danieljames
Date: 2011-02-22 15:26:41 EST (Tue, 22 Feb 2011)
New Revision: 69163
URL: http://svn.boost.org/trac/boost/changeset/69163

Log:
Fix biblioid, consume methods could be called in the wrong order.
Text files modified:
   branches/quickbook-filenames/tools/quickbook/src/doc_info_actions.cpp | 7 +++++--
   1 files changed, 5 insertions(+), 2 deletions(-)

Modified: branches/quickbook-filenames/tools/quickbook/src/doc_info_actions.cpp
==============================================================================
--- branches/quickbook-filenames/tools/quickbook/src/doc_info_actions.cpp (original)
+++ branches/quickbook-filenames/tools/quickbook/src/doc_info_actions.cpp 2011-02-22 15:26:41 EST (Tue, 22 Feb 2011)
@@ -324,10 +324,13 @@
 
         BOOST_FOREACH(value_consumer biblioid, biblioids)
         {
+ value class_ = biblioid.consume(doc_info_tags::biblioid_class);
+ value value_ = biblioid.consume(doc_info_tags::biblioid_value);
+
             tmp << " <biblioid class=\""
- << biblioid.consume(doc_info_tags::biblioid_class).get_quickbook()
+ << class_.get_quickbook()
                 << "\">"
- << doc_info_output(biblioid.consume(doc_info_tags::biblioid_value), 106)
+ << doc_info_output(value_, 106)
                 << "</biblioid>"
                 << "\n"
                 ;


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