Commit 3aaaab6e authored by Josef Weidendorfer's avatar Josef Weidendorfer
Browse files

No need to use toLatin1() with qWarning()/qCritical()

svn path=/trunk/KDE/kdesdk/kcachegrind/; revision=1317559
parent 8268888e
......@@ -1165,7 +1165,7 @@ void QCGTopLevel::setTraceItemDelayed(CostItem* i)
_traceItemDelayed = i;
_lastSender = sender();
qDebug() << "Selected " << (i ? i->prettyName() : "(none)");
qDebug() << "Selected " << (i ? i->fullName() : "(none)");
#if TRACE_UPDATES
qDebug("QCGTopLevel::setTraceItemDelayed(%s), sender %s",
......@@ -2020,14 +2020,14 @@ void QCGTopLevel::loadProgress(int progress)
void QCGTopLevel::loadError(int line, const QString& msg)
{
qCritical() << "Loading" << _filename.toLatin1()
<< ":" << line << ": " << msg.toLatin1();
qCritical() << "Loading" << _filename
<< ":" << line << ": " << msg;
}
void QCGTopLevel::loadWarning(int line, const QString& msg)
{
qWarning() << "Loading" << _filename.toLatin1()
<< ":" << line << ": " << msg.toLatin1();
qWarning() << "Loading" << _filename
<< ":" << line << ": " << msg;
}
#include "qcgtoplevel.moc"
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