ErrorItem::ErrorItem(const ErrorLogger::ErrorMessage &errmsg) : errorId(QString::fromStdString(errmsg._id)) , severity(errmsg._severity) , inconclusive(errmsg._inconclusive) , summary(QString::fromStdString(errmsg.shortMessage())) , message(QString::fromStdString(errmsg.verboseMessage())) , cwe(errmsg._cwe.id) , symbolNames(QString::fromStdString(errmsg.symbolNames())) { for (std::list<ErrorLogger::ErrorMessage::FileLocation>::const_iterator loc = errmsg._callStack.begin(); loc != errmsg._callStack.end(); ++loc) { errorPath << QErrorPathItem(*loc); } }