Commit 0c621dcd authored by Friedemann Kleint's avatar Friedemann Kleint Committed by hjk

Reduce usage of QStringRef::toString() in debuggertooltipmanager.cpp.

Change-Id: I5236df01aec5a5a173ea81d50330f0255603acad
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 09be44a7
......@@ -756,7 +756,7 @@ DebuggerToolTipWidget *DebuggerToolTipWidget::loadSessionDataI(QXmlStreamReader
if (attributes.hasAttribute(offsetYAttribute))
offset.setY(attributes.value(offsetYAttribute).toString().toInt());
const QString className = attributes.value(QLatin1String(toolTipClassAttributeC)).toString();
const QStringRef className = attributes.value(QLatin1String(toolTipClassAttributeC));
const QString engineType = attributes.value(QLatin1String(engineTypeAttributeC)).toString();
const QDate creationDate = dateFromString(attributes.value(QLatin1String(dateAttributeC)).toString());
if (!creationDate.isValid() || creationDate.daysTo(QDate::currentDate()) > toolTipsExpiryDays) {
......@@ -780,7 +780,7 @@ DebuggerToolTipWidget *DebuggerToolTipWidget::loadSessionDataI(QXmlStreamReader
rc->setOffset(offset);
rc->pin();
} else {
qWarning("Unable to create debugger tool tip widget of class %s", qPrintable(className));
qWarning("Unable to create debugger tool tip widget of class %s", qPrintable(className.toString()));
r.readElementText(QXmlStreamReader::SkipChildElements); // Skip
}
return rc;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment