chore: Re-simplify IndexVersionType and MessageLevel with c++20
This sets our compiler requirements to gcc 11 and clang 13. If we forgo the use of `using enum` we can drop to gcc 10 and clang 10 but that means using `MessageLevel::Enum::Unknown` for direct enum access Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
@@ -217,7 +217,7 @@ shared_qobject_ptr<LogModel> LaunchTask::getLogModel()
|
||||
bool LaunchTask::parseXmlLogs(QString const& line, MessageLevel level)
|
||||
{
|
||||
LogParser* parser;
|
||||
switch (level) {
|
||||
switch (static_cast<MessageLevel::Enum>(level)) {
|
||||
case MessageLevel::StdErr:
|
||||
parser = &m_stderrParser;
|
||||
break;
|
||||
@@ -234,7 +234,7 @@ bool LaunchTask::parseXmlLogs(QString const& line, MessageLevel level)
|
||||
auto& model = *getLogModel();
|
||||
model.append(MessageLevel::Error, tr("[Log4j Parse Error] Failed to parse log4j log event: %1").arg(err.value().errMessage));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (items.isEmpty())
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user