summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/qmldom.cpp7
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();
+ }
}
/*!