Commit b2470265 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlDesigner: Fix compilation warning for debug builds

parent dcafe3c8
...@@ -331,10 +331,12 @@ static QVariant objectToVariant(QObject *object) ...@@ -331,10 +331,12 @@ static QVariant objectToVariant(QObject *object)
return QVariant::fromValue(object); return QVariant::fromValue(object);
} }
#ifndef QT_DEBUG
static bool hasFullImplementedListInterface(const QDeclarativeListReference &list) static bool hasFullImplementedListInterface(const QDeclarativeListReference &list)
{ {
return list.isValid() && list.canCount() && list.canAt() && list.canAppend() && list.canClear(); return list.isValid() && list.canCount() && list.canAt() && list.canAppend() && list.canClear();
} }
#endif
static void removeObjectFromList(const QDeclarativeProperty &metaProperty, QObject *objectToBeRemoved, QDeclarativeEngine * engine) static void removeObjectFromList(const QDeclarativeProperty &metaProperty, QObject *objectToBeRemoved, QDeclarativeEngine * engine)
{ {
......
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