Debugger: Fix build

Amends 2081038953

Change-Id: Ieae6945b2a856b8ae253bf3a49ce8a7613e88a1f
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Leander Schulten
2021-02-04 13:23:15 +01:00
parent 84865016ea
commit 54e5ff7e05

View File

@@ -2421,11 +2421,17 @@ void GdbEngine::updateTracepointCaptures(const Breakpoint &bp)
else
QTC_ASSERT(false, continue);
caps << QVariant::fromValue<TracepointCaptureData>(
{type, {}, match.capturedStart(2), match.capturedEnd(2)});
{type,
{},
static_cast<int>(match.capturedStart(2)),
static_cast<int>(match.capturedEnd(2))});
} else {
QString expression = t.mid(1, t.length() - 2);
caps << QVariant::fromValue<TracepointCaptureData>(
{TracepointCaptureType::Expression, expression, match.capturedStart(2), match.capturedEnd(2)});
{TracepointCaptureType::Expression,
expression,
static_cast<int>(match.capturedStart(2)),
static_cast<int>(match.capturedEnd(2))});
}
match = capsRegExp.match(message, match.capturedEnd());
}