Add QColor support to v4.
[profile/ivi/qtdeclarative.git] / src / declarative / qml / v4 / qv4ir_p.h
index e57b29d..f6aae06 100644 (file)
@@ -142,7 +142,7 @@ enum Type {
     VoidType,
     StringType,
     UrlType,
-    AnchorLineType,
+    ColorType,
     SGAnchorLineType,
     AttachType,
     ObjectType,
@@ -307,7 +307,7 @@ struct Unop: Expr {
 
     void init(AluOp op, Expr *expr)
     {
-        this->typeForOp(op, expr);
+        this->type = this->typeForOp(op, expr);
         this->op = op;
         this->expr = expr;
     }