summaryrefslogtreecommitdiffstats
path: root/src/dom/xpathparser.cpp
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-04-27 09:53:08 +0000
committerishmal <ishmal@users.sourceforge.net>2006-04-27 09:53:08 +0000
commite47e9be6fd9f99acfa9e46c660b7c885a9141380 (patch)
treec86a604bd52a1392f4da84350578218c4600b42e /src/dom/xpathparser.cpp
parentfixing conditional attribute evaluation on load (if conditional attributes we... (diff)
downloadinkscape-e47e9be6fd9f99acfa9e46c660b7c885a9141380.tar.gz
inkscape-e47e9be6fd9f99acfa9e46c660b7c885a9141380.zip
interim cleanup commit
(bzr r597)
Diffstat (limited to 'src/dom/xpathparser.cpp')
-rw-r--r--src/dom/xpathparser.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dom/xpathparser.cpp b/src/dom/xpathparser.cpp
index f3c57f6f5..18d62d40a 100644
--- a/src/dom/xpathparser.cpp
+++ b/src/dom/xpathparser.cpp
@@ -618,6 +618,12 @@ int XPathParser::lexicalScan()
//# X P A T H G R A M M A R P A R S I N G
//#########################################################################
+
+void XPathParser::tokAdd(Token *tok)
+{
+ tokens.add(tok);
+}
+
/**
* [1] LocationPath ::=
* RelativeLocationPath
@@ -873,7 +879,7 @@ int XPathParser::getNodeTest(int p0, int depth)
if (t.getType() == NAME_TEST)
{
p++;
- printf("xxx\n");
+ tokAdd(new TokNameTest(t.getStringValue()));
return p;
}
if (t.getType() == NODE_TYPE)