diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-12-04 14:31:17 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-12-04 14:31:17 (GMT) |
commit | e524071986aba68956ff4cf18439e3d61ff90ec4 (patch) | |
tree | 5c7e609be153c4f0cbb708e6315d57fc1f9cf16b /src/declarative/qml/qmlcomponent.cpp | |
parent | ee9aee5d85345880d8269c02cfd3c2d86e89c9d3 (diff) | |
download | Qt-e524071986aba68956ff4cf18439e3d61ff90ec4.zip Qt-e524071986aba68956ff4cf18439e3d61ff90ec4.tar.gz Qt-e524071986aba68956ff4cf18439e3d61ff90ec4.tar.bz2 |
small cleanup
make use of QVariant::userType over Qvariant::type
make use of char for 1-string character
QCoreApplication::translate is static
Diffstat (limited to 'src/declarative/qml/qmlcomponent.cpp')
-rw-r--r-- | src/declarative/qml/qmlcomponent.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp index b66e026..0bd51c3 100644 --- a/src/declarative/qml/qmlcomponent.cpp +++ b/src/declarative/qml/qmlcomponent.cpp @@ -499,9 +499,9 @@ QString QmlComponent::errorsString() const if(!isError()) return ret; foreach(const QmlError &e, d->errors) { - ret += e.url().toString() + QLatin1String(":") + - QString::number(e.line()) + QLatin1String(" ") + - e.description() + QLatin1String("\n"); + ret += e.url().toString() + QLatin1Char(':') + + QString::number(e.line()) + QLatin1Char(' ') + + e.description() + QLatin1Char('\n'); } return ret; } |