From c6a983d27179ebd26e692918e58d44aa77fc7f8a Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 21 Dec 2014 21:54:30 +0200 Subject: Core: Use FileName for file path in IDocument Change-Id: I85f7398aee59d0d36f0e5c3bf88ff3c96002e394 Reviewed-by: Eike Ziller --- src/plugins/cpptools/cppmodelmanager_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cppmodelmanager_test.cpp') diff --git a/src/plugins/cpptools/cppmodelmanager_test.cpp b/src/plugins/cpptools/cppmodelmanager_test.cpp index c1ec0a33f9..cd9d078a3c 100644 --- a/src/plugins/cpptools/cppmodelmanager_test.cpp +++ b/src/plugins/cpptools/cppmodelmanager_test.cpp @@ -989,7 +989,7 @@ void CppToolsPlugin::test_modelmanager_defines_per_editor() QCOMPARE(Core::DocumentModel::openedDocuments().size(), 1); QVERIFY(mm->isCppEditor(editor)); - const QString filePath = editor->document()->filePath(); + const QString filePath = editor->document()->filePath().toString(); BaseEditorDocumentParser *parser = BaseEditorDocumentParser::get(filePath); parser->setEditorDefines(editorDefines.toUtf8()); parser->update(mm->workingCopy()); -- cgit v1.2.1