~autopilot/xpathselect/1.3

« back to all changes in this revision

Viewing changes to lib/xpathselect.cpp

  • Committer: Tarmac
  • Author(s): Thomi Richards
  • Date: 2012-08-14 08:08:07 UTC
  • mfrom: (11.1.7 hacking)
  • Revision ID: tarmac-20120814080807-3844tdh28ip1mbmt
Fix bug & build library as a static lib.. Approved by Christopher Lee.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
            queue.push(root);
138
138
            while (!queue.empty())
139
139
            {
140
 
                Node::Ptr const& node = queue.front();
 
140
                Node::Ptr node = queue.front();
141
141
                queue.pop();
142
142
                if (query_parts.front().Matches(node))
143
143
                {
146
146
                    matches.push_back(node);
147
147
                }
148
148
                // Add all children of current node to queue.
149
 
                for(Node::Ptr const& child : node->Children())
 
149
                for(Node::Ptr child : node->Children())
150
150
                {
151
151
                    queue.push(child);
152
152
                }