diff --git a/src/plugins/cppeditor/cppquickfix_test.cpp b/src/plugins/cppeditor/cppquickfix_test.cpp
index 319f01d25cc0c5012d661ed4308904406ccb8ac0..e7b840d3fd75780d8cfd950fe15f26cc24d52ce8 100644
--- a/src/plugins/cppeditor/cppquickfix_test.cpp
+++ b/src/plugins/cppeditor/cppquickfix_test.cpp
@@ -1264,7 +1264,7 @@ void CppEditorPlugin::test_quickfix_InsertDeclFromDef()
 
 QList<Include> includesForSource(const QByteArray &source)
 {
-    const QString fileName = TestIncludePaths::TestIncludePaths::directoryOfTestFile() + QLatin1String("/file.cpp");
+    const QString fileName = TestIncludePaths::directoryOfTestFile() + QLatin1String("/file.cpp");
     Utils::FileSaver srcSaver(fileName);
     srcSaver.write(source);
     srcSaver.finalize();