Fix gcc compilation warnings
QML_SHOW_FRAMERATE is a leftover from QDeclarativeView. Rest is signed vs unsigned integer comparison. Change-Id: Ie17e217fc1cf13d29a3795a40dbbc07e9c7c6067 Reviewed-by: Martin Jones <martin.jones@nokia.com>
This commit is contained in:
parent
19cdd020ab
commit
f59b4c4539
|
@ -56,8 +56,6 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
DEFINE_BOOL_CONFIG_OPTION(frameRateDebug, QML_SHOW_FRAMERATE)
|
||||
|
||||
void QQuickViewPrivate::init()
|
||||
{
|
||||
Q_Q(QQuickView);
|
||||
|
|
|
@ -217,7 +217,7 @@ static QString qmlsqldatabase_databaseFile(const QString& connectionName, QV8Eng
|
|||
|
||||
static v8::Handle<v8::Value> qmlsqldatabase_rows_index(QV8SqlDatabaseResource *r, uint32_t index)
|
||||
{
|
||||
if (r->query.at() == index || r->query.seek(index)) {
|
||||
if (r->query.at() == (int)index || r->query.seek(index)) {
|
||||
|
||||
QSqlRecord record = r->query.record();
|
||||
// XXX optimize
|
||||
|
|
|
@ -820,7 +820,7 @@ v8::Handle<v8::Value> NamedNodeMap::indexed(uint32_t index, const v8::AccessorIn
|
|||
if (!r || !r->list) return v8::Undefined();
|
||||
QV8Engine *engine = V8ENGINE();
|
||||
|
||||
if (index < r->list->count()) {
|
||||
if ((int)index < r->list->count()) {
|
||||
return Node::create(engine, r->list->at(index));
|
||||
} else {
|
||||
return v8::Undefined();
|
||||
|
@ -876,7 +876,7 @@ v8::Handle<v8::Value> NodeList::indexed(uint32_t index, const v8::AccessorInfo&
|
|||
if (!r) return v8::Undefined();
|
||||
QV8Engine *engine = V8ENGINE();
|
||||
|
||||
if (index < r->d->children.count()) {
|
||||
if ((int)index < r->d->children.count()) {
|
||||
return Node::create(engine, r->d->children.at(index));
|
||||
} else {
|
||||
return v8::Undefined();
|
||||
|
|
|
@ -185,7 +185,7 @@ v8::Handle<v8::Array> QV8ListWrapper::Enumerator(const v8::AccessorInfo &info)
|
|||
|
||||
v8::Local<v8::Array> rv = v8::Array::New(count);
|
||||
|
||||
for (int ii = 0; ii < count; ++ii)
|
||||
for (uint ii = 0; ii < count; ++ii)
|
||||
rv->Set(ii, v8::Number::New(ii));
|
||||
|
||||
return rv;
|
||||
|
|
Loading…
Reference in New Issue