summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-09 02:37:16 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-09 02:37:16 (GMT)
commitc45309cd037d099dd23e4bce8c5a7d1d41d5ceaa (patch)
treef99c0d88793d88459da24c3cd079646f9fc5a93e /src/declarative
parent2e72795565ac73b95ada86a461735cbe8b7721ad (diff)
downloadQt-c45309cd037d099dd23e4bce8c5a7d1d41d5ceaa.zip
Qt-c45309cd037d099dd23e4bce8c5a7d1d41d5ceaa.tar.gz
Qt-c45309cd037d099dd23e4bce8c5a7d1d41d5ceaa.tar.bz2
constness fix
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/qmlinfo.cpp4
-rw-r--r--src/declarative/qml/qmlinfo.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlinfo.cpp b/src/declarative/qml/qmlinfo.cpp
index f62f5fd..5ebcd8d 100644
--- a/src/declarative/qml/qmlinfo.cpp
+++ b/src/declarative/qml/qmlinfo.cpp
@@ -47,7 +47,7 @@
QT_BEGIN_NAMESPACE
/*!
- \fn void qmlInfo(const QString& message, QObject *object)
+ \fn void qmlInfo(const QString& message, const QObject *object)
\brief Prints warnings messages that include the file and line number for QML types.
@@ -73,7 +73,7 @@ QT_BEGIN_NAMESPACE
\endcode
*/
-void qmlInfo(const QString& msg, QObject* object)
+void qmlInfo(const QString& msg, const QObject* object)
{
QString pos = QLatin1String("QML");
if (object) {
diff --git a/src/declarative/qml/qmlinfo.h b/src/declarative/qml/qmlinfo.h
index 2e26ea4..1660aa2 100644
--- a/src/declarative/qml/qmlinfo.h
+++ b/src/declarative/qml/qmlinfo.h
@@ -50,7 +50,7 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Declarative)
-Q_DECLARATIVE_EXPORT void qmlInfo(const QString& msg, QObject *me=0);
+Q_DECLARATIVE_EXPORT void qmlInfo(const QString& msg, const QObject *me=0);
QT_END_NAMESPACE