diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2009-08-24 09:58:43 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2009-08-24 09:58:43 (GMT) |
commit | d4c67f5293c0a6c7d7b586a401e1972b964d0c16 (patch) | |
tree | 019d3d822127087ddc85092f9b573f1b21203284 /src/declarative/qml/qmldom.cpp | |
parent | 9e2114fa326be128b03268865b39ddb2731e0173 (diff) | |
download | Qt-d4c67f5293c0a6c7d7b586a401e1972b964d0c16.zip Qt-d4c67f5293c0a6c7d7b586a401e1972b964d0c16.tar.gz Qt-d4c67f5293c0a6c7d7b586a401e1972b964d0c16.tar.bz2 |
Silence gcc compiler error
Diffstat (limited to 'src/declarative/qml/qmldom.cpp')
-rw-r--r-- | src/declarative/qml/qmldom.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/declarative/qml/qmldom.cpp b/src/declarative/qml/qmldom.cpp index 2aaf492..9e12485 100644 --- a/src/declarative/qml/qmldom.cpp +++ b/src/declarative/qml/qmldom.cpp @@ -765,8 +765,11 @@ Text { id: MyText } */ QString QmlDomObject::objectId() const { - if (d->object) return d->object->id; - else return QByteArray(); + if (d->object) { + return d->object->id; + } else { + return QString(); + } } /*! |