Add QColor support to v4.
[profile/ivi/qtdeclarative.git] / src / declarative / qml / v4 / qv4ir_p.h
index e1b4584..f6aae06 100644 (file)
@@ -1,7 +1,6 @@
 /****************************************************************************
 **
 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
 ** Contact: http://www.qt-project.org/
 **
 ** This file is part of the QtDeclarative module of the Qt Toolkit.
@@ -35,6 +34,7 @@
 **
 **
 **
+**
 ** $QT_END_LICENSE$
 **
 ****************************************************************************/
@@ -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;
     }