Merge lp:~paul-lucas/zorba/bug-944797 into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Matthias Brantner
Approved revision: 10694
Merged at revision: 10695
Proposed branch: lp:~paul-lucas/zorba/bug-944797
Merge into: lp:zorba
Diff against target: 38 lines (+10/-0)
2 files modified
src/store/naive/node_items.cpp (+8/-0)
src/store/naive/node_items.h (+2/-0)
To merge this branch: bzr merge lp:~paul-lucas/zorba/bug-944797
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+95561@code.launchpad.net

Commit message

Added ~XmlNodeTokenizerCallback() to destroy tokenizers.

Description of the change

Added ~XmlNodeTokenizerCallback() to destroy tokenizers.

To post a comment you must log in.
Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug-944797-2012-03-02T16-19-10.915Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/store/naive/node_items.cpp'
--- src/store/naive/node_items.cpp 2012-02-28 20:45:43 +0000
+++ src/store/naive/node_items.cpp 2012-03-02 13:52:59 +0000
@@ -43,6 +43,7 @@
43#include "dataguide.h"43#include "dataguide.h"
44#include "node_factory.h"44#include "node_factory.h"
4545
46#include "util/stl_util.h"
46#include "util/string_util.h"47#include "util/string_util.h"
4748
48#ifndef ZORBA_NO_FULL_TEXT49#ifndef ZORBA_NO_FULL_TEXT
@@ -4638,6 +4639,13 @@
4638}4639}
46394640
46404641
4642XmlNodeTokenizerCallback::~XmlNodeTokenizerCallback()
4643{
4644 while ( !tokenizer_stack_.empty() )
4645 ztd::pop_stack( tokenizer_stack_ )->destroy();
4646}
4647
4648
4641inline XmlNodeTokenizerCallback::begin_type4649inline XmlNodeTokenizerCallback::begin_type
4642XmlNodeTokenizerCallback::beginTokenization() const 4650XmlNodeTokenizerCallback::beginTokenization() const
4643{4651{
46444652
=== modified file 'src/store/naive/node_items.h'
--- src/store/naive/node_items.h 2012-02-28 20:45:43 +0000
+++ src/store/naive/node_items.h 2012-03-02 13:52:59 +0000
@@ -1666,6 +1666,8 @@
1666 locale::iso639_1::type lang,1666 locale::iso639_1::type lang,
1667 container_type &tokens );1667 container_type &tokens );
16681668
1669 ~XmlNodeTokenizerCallback();
1670
1669 begin_type beginTokenization() const;1671 begin_type beginTokenization() const;
16701672
1671 void endTokenization( XmlNode const*, begin_type );1673 void endTokenization( XmlNode const*, begin_type );

Subscribers

People subscribed via source and target branches