Commit 55df8bbb authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

add missing cast

2006-09-26  Jürg Billeter  <j@bitron.ch>

	* vala/valaassignment.vala, vala/valabinaryexpression.vala,
	  vala/valacastexpression.vala, vala/valadostatement.vala,
	  vala/valaexpressionstatement.vala, vala/valaforeachstatement.vala,
	  vala/valaforstatement.vala, vala/valaifstatement.vala,
	  vala/valainvocationexpression.vala, vala/valamemberaccess.vala,
	  vala/valaparenthesizedexpression.vala, vala/valareturnstatement.vala,
	  vala/valaswitchstatement.vala, vala/valaunaryexpression.vala,
	  vala/valawhilestatement.vala: add missing cast

svn path=/trunk/; revision=124
parent cc09439a
2006-09-26 Jürg Billeter <j@bitron.ch>
* vala/valaassignment.vala, vala/valabinaryexpression.vala,
vala/valacastexpression.vala, vala/valadostatement.vala,
vala/valaexpressionstatement.vala, vala/valaforeachstatement.vala,
vala/valaforstatement.vala, vala/valaifstatement.vala,
vala/valainvocationexpression.vala, vala/valamemberaccess.vala,
vala/valaparenthesizedexpression.vala, vala/valareturnstatement.vala,
vala/valaswitchstatement.vala, vala/valaunaryexpression.vala,
vala/valawhilestatement.vala: add missing cast
2006-09-03 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: make character_literal stricter
......
......@@ -90,10 +90,10 @@ public class Vala.Assignment : Expression {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (left == old_node) {
left = new_node;
left = (Expression) new_node;
}
if (right == old_node) {
right = new_node;
right = (Expression) new_node;
}
}
}
......
......@@ -87,10 +87,10 @@ public class Vala.BinaryExpression : Expression {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (left == old_node) {
left = new_node;
left = (Expression) new_node;
}
if (right == old_node) {
right = new_node;
right = (Expression) new_node;
}
}
}
......
......@@ -68,7 +68,7 @@ public class Vala.CastExpression : Expression {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (inner == old_node) {
inner = new_node;
inner = (Expression) new_node;
}
}
}
......@@ -72,7 +72,7 @@ public class Vala.DoStatement : Statement {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (condition == old_node) {
condition = new_node;
condition = (Expression) new_node;
}
}
}
......@@ -62,7 +62,7 @@ public class Vala.ExpressionStatement : Statement {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (expression == old_node) {
expression = new_node;
expression = (Expression) new_node;
}
}
......
......@@ -91,7 +91,7 @@ public class Vala.ForeachStatement : Statement {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (collection == old_node) {
collection = new_node;
collection = (Expression) new_node;
}
}
}
......@@ -119,7 +119,7 @@ public class Vala.ForStatement : Statement {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (condition == old_node) {
condition = new_node;
condition = (Expression) new_node;
}
}
}
......@@ -81,7 +81,7 @@ public class Vala.IfStatement : Statement {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (condition == old_node) {
condition = new_node;
condition = (Expression) new_node;
}
}
}
......@@ -88,7 +88,7 @@ public class Vala.InvocationExpression : Expression {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (call == old_node) {
call = new_node;
call = (Expression) new_node;
}
List l = argument_list.find (old_node);
......
......@@ -104,7 +104,7 @@ public class Vala.MemberAccess : Expression {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (inner == old_node) {
inner = new_node;
inner = (Expression) new_node;
}
}
}
......@@ -61,7 +61,7 @@ public class Vala.ParenthesizedExpression : Expression {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (inner == old_node) {
inner = new_node;
inner = (Expression) new_node;
}
}
}
......@@ -69,7 +69,7 @@ public class Vala.ReturnStatement : Statement {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (return_expression == old_node) {
return_expression = new_node;
return_expression = (Expression) new_node;
}
}
}
......@@ -86,7 +86,7 @@ public class Vala.SwitchStatement : Statement {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (expression == old_node) {
expression = new_node;
expression = (Expression) new_node;
}
}
}
......@@ -70,7 +70,7 @@ public class Vala.UnaryExpression : Expression {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (inner == old_node) {
inner = new_node;
inner = (Expression) new_node;
}
}
}
......
......@@ -72,7 +72,7 @@ public class Vala.WhileStatement : Statement {
public override void replace (CodeNode! old_node, CodeNode! new_node) {
if (condition == old_node) {
condition = new_node;
condition = (Expression) new_node;
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment