forked from qt-creator/qt-creator
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: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -97,13 +97,14 @@ namespace Internal {
|
|||||||
static ErrorListModel::RelevantFrameFinder makeFrameFinder(const QStringList &projectFiles)
|
static ErrorListModel::RelevantFrameFinder makeFrameFinder(const QStringList &projectFiles)
|
||||||
{
|
{
|
||||||
return [projectFiles](const Error &error) {
|
return [projectFiles](const Error &error) {
|
||||||
|
const Frame defaultFrame = Frame();
|
||||||
const QVector<Stack> stacks = error.stacks();
|
const QVector<Stack> stacks = error.stacks();
|
||||||
if (stacks.isEmpty())
|
if (stacks.isEmpty())
|
||||||
return Frame();
|
return defaultFrame;
|
||||||
const Stack &stack = stacks[0];
|
const Stack &stack = stacks[0];
|
||||||
const QVector<Frame> frames = stack.frames();
|
const QVector<Frame> frames = stack.frames();
|
||||||
if (frames.isEmpty())
|
if (frames.isEmpty())
|
||||||
return Frame();
|
return defaultFrame;
|
||||||
|
|
||||||
//find the first frame belonging to the project
|
//find the first frame belonging to the project
|
||||||
if (!projectFiles.isEmpty()) {
|
if (!projectFiles.isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user