diff --git a/tests/auto/cplusplus/lookup/tst_lookup.cpp b/tests/auto/cplusplus/lookup/tst_lookup.cpp index 8994650af4af0d6f6c499f24a3572eddd83a2a03..dc79d9868993b60249ddf25e2839706fc9714630 100644 --- a/tests/auto/cplusplus/lookup/tst_lookup.cpp +++ b/tests/auto/cplusplus/lookup/tst_lookup.cpp @@ -82,7 +82,7 @@ void tst_Lookup::base_class_defined_1() QCOMPARE(doc->globalSymbolCount(), 2U); Snapshot snapshot; - snapshot.insert(doc->fileName(), doc); + snapshot.insert(doc); Document::Ptr emptyDoc = Document::create("<empty>"); @@ -133,7 +133,7 @@ void tst_Lookup::simple_class_1() QCOMPARE(doc->globalSymbolCount(), 2U); Snapshot snapshot; - snapshot.insert(doc->fileName(), doc); + snapshot.insert(doc); Document::Ptr emptyDoc = Document::create("<empty>"); @@ -199,7 +199,7 @@ void tst_Lookup::class_with_baseclass() QCOMPARE(doc->globalSymbolCount(), 3U); Snapshot snapshot; - snapshot.insert(doc->fileName(), doc); + snapshot.insert(doc); Document::Ptr emptyDoc = Document::create("<empty>"); @@ -266,7 +266,7 @@ void tst_Lookup::class_with_protocol_with_protocol() QCOMPARE(doc->globalSymbolCount(), 4U); Snapshot snapshot; - snapshot.insert(doc->fileName(), doc); + snapshot.insert(doc); Document::Ptr emptyDoc = Document::create("<empty>");