From 24eb796231b7b3a01a801579ec81068102efb7ac Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 8 Apr 2021 14:57:57 +0200 Subject: CppEditor: Fix "Add Definition" quickfix for function parameters ... whose type is a template. Fixes: QTCREATORBUG-25560 Change-Id: I1d626f9376e8802a87ca1a28099932ccbf744d47 Reviewed-by: Christian Stenger --- src/plugins/cppeditor/cppquickfix_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/cppeditor/cppquickfix_test.cpp') diff --git a/src/plugins/cppeditor/cppquickfix_test.cpp b/src/plugins/cppeditor/cppquickfix_test.cpp index 37ca090f7e..0fcbe92e98 100644 --- a/src/plugins/cppeditor/cppquickfix_test.cpp +++ b/src/plugins/cppeditor/cppquickfix_test.cpp @@ -3839,7 +3839,7 @@ void CppEditorPlugin::test_quickfix_InsertDefFromDecl_headerSource_basic2() QByteArray expected; // Header File - original = "void f()@;\n"; + original = "void f(const std::vector &v)@;\n"; expected = original; testDocuments << QuickFixTestDocument::create("file.h", original, expected); @@ -3854,7 +3854,7 @@ void CppEditorPlugin::test_quickfix_InsertDefFromDecl_headerSource_basic2() "\n" "int x;\n" "\n" - "void f()\n" + "void f(const std::vector &v)\n" "{\n" "\n" "}\n" -- cgit v1.2.1