Skip to content
Snippets Groups Projects
Commit 4dadefc8 authored by Olivier Goffart's avatar Olivier Goffart
Browse files

Compile on windows

Apparently, it did not like ::label
parent 812af85d
No related branches found
No related tags found
No related merge requests found
......@@ -120,18 +120,18 @@ struct FindObjectMemberWithLabel : public Visitor
virtual void endVisit(UiObjectBinding *ast) ;
QList<UiObjectMember *> found;
QString label;
QString ref_label;
Document::Ptr doc;
};
void FindObjectMemberWithLabel::endVisit(UiObjectDefinition* ast)
{
if (::label(ast, doc) == label)
if (label(ast, doc) == ref_label)
found.append(ast);
}
void FindObjectMemberWithLabel::endVisit(UiObjectBinding* ast)
{
if (::label(ast, doc) == label)
if (label(ast, doc) == ref_label)
found.append(ast);
}
......@@ -232,7 +232,7 @@ static Map buildMapping(Document::Ptr doc1, Document::Ptr doc2)
//If this is too slow, we could use some sort of indexing
FindObjectMemberWithLabel v3;
v3.label = label(x, doc1);
v3.ref_label = label(x, doc1);
v3.doc = doc2;
doc2->qmlProgram()->accept(&v3);
Map M2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment