From 722dcd2c315acc2bab1cfa9072986ca66a5bba88 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 1 Apr 2014 10:06:39 +0200 Subject: Move inline function Bool Runtime::compareEqual() above usage. Fix MinGW-warnings: src/qml/jsruntime/qv4runtime_p.h:496:13: warning: 'static QV4::Bool QV4::Runtime::compareEqual(QV4::ValueRef, QV4::ValueRef)' redeclared without dllimport attribute after being referenced with dll linkage Change-Id: Ieb212ed6aba2a0deeeddd033126ae7e9737bb38e Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4runtime_p.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/qml/jsruntime') diff --git a/src/qml/jsruntime/qv4runtime_p.h b/src/qml/jsruntime/qv4runtime_p.h index 4e28441e62..d00c579283 100644 --- a/src/qml/jsruntime/qv4runtime_p.h +++ b/src/qml/jsruntime/qv4runtime_p.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtQml module of the Qt Toolkit. @@ -461,6 +461,24 @@ inline ReturnedValue Runtime::lessEqual(const ValueRef left, const ValueRef righ return Encode(r); } +inline Bool Runtime::compareEqual(const ValueRef left, const ValueRef right) +{ + TRACE2(left, right); + + if (left->rawValue() == right->rawValue()) + // NaN != NaN + return !left->isNaN(); + + if (left->type() == right->type()) { + if (!left->isManaged()) + return false; + if (left->isString() == right->isString()) + return left->managed()->isEqualTo(right->managed()); + } + + return RuntimeHelpers::equalHelper(left, right); +} + inline ReturnedValue Runtime::equal(const ValueRef left, const ValueRef right) { TRACE2(left, right); @@ -493,24 +511,6 @@ inline ReturnedValue Runtime::strictNotEqual(const ValueRef left, const ValueRef return Encode(r); } -inline Bool Runtime::compareEqual(const ValueRef left, const ValueRef right) -{ - TRACE2(left, right); - - if (left->rawValue() == right->rawValue()) - // NaN != NaN - return !left->isNaN(); - - if (left->type() == right->type()) { - if (!left->isManaged()) - return false; - if (left->isString() == right->isString()) - return left->managed()->isEqualTo(right->managed()); - } - - return RuntimeHelpers::equalHelper(left, right); -} - inline Bool Runtime::compareNotEqual(const ValueRef left, const ValueRef right) { TRACE2(left, right); -- cgit v1.2.3