Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: Source/core/xml/XPathGrammar.y

Issue 131593003: Fix bad cast to XPath::Filter in XPathGrammar.y (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/xml/XPathPath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathGrammar.y
diff --git a/Source/core/xml/XPathGrammar.y b/Source/core/xml/XPathGrammar.y
index f40b3ce9af9ba94922ebbac7ddaf0e45390cca99..6911fcfe6013114b255058e116f6a029e3d04f61 100644
--- a/Source/core/xml/XPathGrammar.y
+++ b/Source/core/xml/XPathGrammar.y
@@ -429,7 +429,7 @@ PathExpr:
FilterExpr '/' RelativeLocationPath
{
$3->setAbsolute(true);
- $$ = new Path(static_cast<Filter*>($1), $3);
+ $$ = new Path($1, $3);
parser->unregisterParseNode($1);
parser->unregisterParseNode($3);
parser->registerParseNode($$);
@@ -439,7 +439,7 @@ PathExpr:
{
$3->insertFirstStep($2);
$3->setAbsolute(true);
- $$ = new Path(static_cast<Filter*>($1), $3);
+ $$ = new Path($1, $3);
parser->unregisterParseNode($1);
parser->unregisterParseNode($2);
parser->unregisterParseNode($3);
« no previous file with comments | « no previous file | Source/core/xml/XPathPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698