Commit ed7d5e0d authored by Christian Stenger's avatar Christian Stenger

Valgrind: Fix compile on Win

Fixes compile error C3487 ('const Valgrind::XmlProtocol::Frame':
all return expressions in a lambda must have the same type: previously
it was 'Valgrind::XmlProtocol::Frame')

Change-Id: I6545cd2eda1fba4058bf0dc59ed835fed07f86e8
Reviewed-by: default avatarhjk <>
parent c68d270b
......@@ -97,13 +97,14 @@ namespace Internal {
static ErrorListModel::RelevantFrameFinder makeFrameFinder(const QStringList &projectFiles)
return [projectFiles](const Error &error) {
const Frame defaultFrame = Frame();
const QVector<Stack> stacks = error.stacks();
if (stacks.isEmpty())
return Frame();
return defaultFrame;
const Stack &stack = stacks[0];
const QVector<Frame> frames = stack.frames();
if (frames.isEmpty())
return Frame();
return defaultFrame;
//find the first frame belonging to the project
if (!projectFiles.isEmpty()) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment