From 7723734f7a5888d1e618e9d881a465f5d88315fa Mon Sep 17 00:00:00 2001 From: Anton Kudryavtsev Date: Mon, 17 Oct 2016 16:06:46 +0300 Subject: QQmlLoggingCategory: drop reduntant QString ctor QQmlInfo::operator<< already has QL1S overload. Change-Id: I959fdf58cfbdc4aba99d7da0545f69947534a8d0 Reviewed-by: Dominik Holland Reviewed-by: Simon Hausmann --- src/qml/qml/qqmlloggingcategory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/qml/qqmlloggingcategory.cpp') diff --git a/src/qml/qml/qqmlloggingcategory.cpp b/src/qml/qml/qqmlloggingcategory.cpp index fd8fb477c7..70e59db07b 100644 --- a/src/qml/qml/qqmlloggingcategory.cpp +++ b/src/qml/qml/qqmlloggingcategory.cpp @@ -112,13 +112,13 @@ void QQmlLoggingCategory::componentComplete() { m_initialized = true; if (m_name.isNull()) - qmlInfo(this) << QString(QLatin1String("Declaring the name of the LoggingCategory is mandatory and cannot be changed later !")); + qmlInfo(this) << QLatin1String("Declaring the name of the LoggingCategory is mandatory and cannot be changed later !"); } void QQmlLoggingCategory::setName(const QString &name) { if (m_initialized) { - qmlInfo(this) << QString(QLatin1String("The name of a LoggingCategory cannot be changed after the Item is created")); + qmlInfo(this) << QLatin1String("The name of a LoggingCategory cannot be changed after the Item is created"); return; } -- cgit v1.2.3