Don't add the default arguments when completing function definitions.

Fixes QTCREATORBUG-787

Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-03-05 15:43:31 +01:00
parent d700b84714
commit 9e75ff8ea2
4 changed files with 22 additions and 4 deletions

View File

@@ -1096,6 +1096,7 @@ bool CppCodeCompletion::completeConstructorOrFunction(const QList<LookupItem> &r
foreach (Function *f, functions) {
Overview overview;
overview.setShowArgumentNames(true);
overview.setShowDefaultArguments(false);
// gets: "parameter list) cv-spec",
QString completion = overview(f->type()).mid(1);