Index: Source/core/xml/XPathGrammar.y |
diff --git a/Source/core/xml/XPathGrammar.y b/Source/core/xml/XPathGrammar.y |
index e3c53d828972be0524ab4aea6e1e39f6c4e4fc21..6eba2252561610b31207a9b38b982a9e9d4fe81f 100644 |
--- a/Source/core/xml/XPathGrammar.y |
+++ b/Source/core/xml/XPathGrammar.y |
@@ -62,7 +62,7 @@ using namespace XPath; |
EqTestOp::Opcode eqop; |
String* str; |
Expression* expr; |
- Vector<Predicate*>* predList; |
+ Vector<OwnPtr<Predicate> >* predList; |
Vector<OwnPtr<Expression> >* argList; |
Step* step; |
LocationPath* locationPath; |
@@ -291,15 +291,15 @@ OptionalPredicateList: |
PredicateList: |
Predicate |
{ |
- $$ = new Vector<Predicate*>; |
- $$->append(new Predicate(adoptPtr($1))); |
+ $$ = new Vector<OwnPtr<Predicate> >; |
+ $$->append(adoptPtr(new Predicate(adoptPtr($1)))); |
parser->unregisterParseNode($1); |
parser->registerPredicateVector($$); |
} |
| |
PredicateList Predicate |
{ |
- $$->append(new Predicate(adoptPtr($2))); |
+ $$->append(adoptPtr(new Predicate(adoptPtr($2)))); |
parser->unregisterParseNode($2); |
} |
; |