diff --git a/gui/erroritem.h b/gui/erroritem.h index 3c5f601ee..065bff932 100644 --- a/gui/erroritem.h +++ b/gui/erroritem.h @@ -38,7 +38,7 @@ class ErrorLine; class GuiSeverity { public: static QString toString(Severity::SeverityType severity) { - return QString(Severity::toString(severity).c_str()); + return QString::fromStdString(Severity::toString(severity)); } static Severity::SeverityType fromString(const QString &severity) { diff --git a/gui/threadresult.cpp b/gui/threadresult.cpp index bc9a0449f..de3b5b05d 100644 --- a/gui/threadresult.cpp +++ b/gui/threadresult.cpp @@ -67,7 +67,7 @@ void ThreadResult::reportErr(const ErrorLogger::ErrorMessage &msg) for (std::list::const_iterator tok = msg._callStack.begin(); tok != msg._callStack.end(); ++tok) { - files << QString((*tok).getfile(false).c_str()); + files << QString::fromStdString((*tok).getfile(false)); lines << (*tok).line; }