diff --git a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/QtFunctionCallUtil.java b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/QtFunctionCallUtil.java index 7b652028aee..1e050cb51e5 100644 --- a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/QtFunctionCallUtil.java +++ b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/QtFunctionCallUtil.java @@ -66,7 +66,9 @@ public class QtFunctionCallUtil { * and false otherwise. */ public static boolean isQObjectFunctionCall(IASTCompletionContext astContext, boolean isPrefix, IASTName name) { - if (name == null) + if (name == null + || name.getSimpleID() == null + || name.getSimpleID().length <= 0) return false; // Bug332201: Qt content assist should always be applied to the most specific part of @@ -80,14 +82,6 @@ public class QtFunctionCallUtil { return false; } - /** - * Returns true if the given function call argument is a SIGNAL or SLOT expansion - * and false otherwise. - public static boolean isQtMethodExpansion(IASTInitializerClause arg) { - return MethodRegex.matcher(arg.getRawSignature()).matches(); - } - */ - /** * If the given argument is a SIGNAL or SLOT expansion then find and return the node in the AST * that will be used for this method. Returns null if the argument is not a Qt method call or