GUI: refactoring, replace .c_str()
This commit is contained in:
parent
81a38bd7ea
commit
0e78dd5eac
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue