Adds first successful release run (tbc)
This commit is contained in:
22 files changed
+89
-34
No files matched your search
@@ -37,6 +37,7 @@ LogViewXdrParser::LogViewXdrParser()
|
||||
, m_WordListIndex(0)
|
||||
, m_ActElement(nullptr)
|
||||
, m_State(e_ParseMain)
|
||||
, m_logger(getLogger("LogViewXdrParser"))
|
||||
{}
|
||||
|
||||
LogViewXdrParser::~LogViewXdrParser()
|
||||
@@ -352,7 +353,7 @@ void LogViewXdrParser::parseEnum(const QString &a_line, const uint16_t a_enumSiz
|
||||
if (a_line.endsWith(QLatin1String(" {")))
|
||||
{
|
||||
m_State = e_ParseEnum;
|
||||
const QString name = a_line.leftRef(a_line.length()-2).trimmed().toString();
|
||||
const QString name = a_line.left(a_line.length()-2).trimmed();
|
||||
m_ActElement = new LogViewXdrStruct(name, LogViewXdrElement::e_KindEnum, a_enumSize);
|
||||
if (!addToElementMap(name, m_ActElement))
|
||||
{
|
||||
@@ -617,8 +618,8 @@ bool LogViewXdrParser::parseEnumLine(const QString& a_line, QString& a_name, QSt
|
||||
int sepPos = line.lastIndexOf(QLatin1Char('='));
|
||||
if (-1 != sepPos)
|
||||
{
|
||||
a_name = line.leftRef(sepPos).trimmed().toString();
|
||||
a_value = line.midRef(sepPos+1).trimmed().toString();
|
||||
a_name = line.left(sepPos).trimmed();
|
||||
a_value = line.mid(sepPos+1).trimmed();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -870,7 +871,7 @@ void LogViewXdrParser::fillWordList(const QString& a_line)
|
||||
line.replace(QLatin1Char('}'), QLatin1String(" } "));
|
||||
line.replace(QLatin1Char(':'), QLatin1String(" : "));
|
||||
line.replace(QLatin1Char(';'), QLatin1String(" ; "));
|
||||
m_WordList = line.split(QLatin1Char(' '), QString::SkipEmptyParts);
|
||||
m_WordList = line.split(QLatin1Char(' '), Qt::SkipEmptyParts);
|
||||
m_WordListIndex = 0;
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user