summaryrefslogtreecommitdiff
path: root/src/declarative/qml/qdeclarativeinfo.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-03-15 15:58:35 +1000
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-03-17 10:20:49 +1000
commit26cd94ef47ffc969dc835e98b58eded14e669964 (patch)
tree9ec8e418ec0ce385bd07289d5368e221a5ce017e /src/declarative/qml/qdeclarativeinfo.cpp
parent06766918436dc6c5de2e605e7ed3421c548c6782 (diff)
downloadqt4-tools-26cd94ef47ffc969dc835e98b58eded14e669964.tar.gz
Optimization: Reduce unnecessary QObject allocations
Diffstat (limited to 'src/declarative/qml/qdeclarativeinfo.cpp')
-rw-r--r--src/declarative/qml/qdeclarativeinfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeinfo.cpp b/src/declarative/qml/qdeclarativeinfo.cpp
index 7dc61fd8d5..87a9254467 100644
--- a/src/declarative/qml/qdeclarativeinfo.cpp
+++ b/src/declarative/qml/qdeclarativeinfo.cpp
@@ -43,6 +43,7 @@
#include "qdeclarativedeclarativedata_p.h"
#include "qdeclarativecontext.h"
+#include "qdeclarativecontext_p.h"
#include "qdeclarativemetatype_p.h"
#include <QCoreApplication>
@@ -103,7 +104,7 @@ QDeclarativeInfo::QDeclarativeInfo(const QObject *object)
pos += QLatin1String(" (");
if (ddata) {
if (ddata->outerContext) {
- pos += ddata->outerContext->baseUrl().toString();
+ pos += ddata->outerContext->url.toString();
pos += QLatin1Char(':');
pos += QString::number(ddata->lineNumber);
pos += QLatin1Char(':');