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
1=== modified file 'src/store/naive/node_items.cpp'
2--- src/store/naive/node_items.cpp 2012-02-28 20:45:43 +0000
3+++ src/store/naive/node_items.cpp 2012-03-02 13:52:59 +0000
4@@ -43,6 +43,7 @@
5 #include "dataguide.h"
6 #include "node_factory.h"
7
8+#include "util/stl_util.h"
9 #include "util/string_util.h"
10
11 #ifndef ZORBA_NO_FULL_TEXT
12@@ -4638,6 +4639,13 @@
13 }
14
15
16+XmlNodeTokenizerCallback::~XmlNodeTokenizerCallback()
17+{
18+ while ( !tokenizer_stack_.empty() )
19+ ztd::pop_stack( tokenizer_stack_ )->destroy();
20+}
21+
22+
23 inline XmlNodeTokenizerCallback::begin_type
24 XmlNodeTokenizerCallback::beginTokenization() const
25 {
26
27=== modified file 'src/store/naive/node_items.h'
28--- src/store/naive/node_items.h 2012-02-28 20:45:43 +0000
29+++ src/store/naive/node_items.h 2012-03-02 13:52:59 +0000
30@@ -1666,6 +1666,8 @@
31 locale::iso639_1::type lang,
32 container_type &tokens );
33
34+ ~XmlNodeTokenizerCallback();
35+
36 begin_type beginTokenization() const;
37
38 void endTokenization( XmlNode const*, begin_type );

Subscribers

People subscribed via source and target branches