GUI: refactoring, replace .c_str()

This commit is contained in:
Daniel Marjamäki 2016-10-02 18:11:44 +02:00
parent 81a38bd7ea
commit 0e78dd5eac
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -67,7 +67,7 @@ void ThreadResult::reportErr(const ErrorLogger::ErrorMessage &msg)
for (std::list<ErrorLogger::ErrorMessage::FileLocation>::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;
}