CppEditor: Remove invalid QTC_ASSERTs in signature synchronizer

They were triggered for

    void f(void);
    void f() {} // add space in parameter list to trigger

Change-Id: I410f3ac13380429a1803b95576afa92fef1fe4cf
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2014-11-05 10:24:40 +01:00
parent d23d81f951
commit 85ead5f0da

View File

@@ -672,8 +672,10 @@ ChangeSet FunctionDeclDefLink::changes(const Snapshot &snapshot, int targetOffse
// the number of parameters in sourceFunction or targetFunction
const int existingParamCount = declaredParameterCount(sourceFunction);
QTC_ASSERT(existingParamCount == declaredParameterCount(targetFunction), return changes);
QTC_ASSERT(existingParamCount == targetParameterDecls.size(), return changes);
if (existingParamCount != declaredParameterCount(targetFunction))
return changes;
if (existingParamCount != targetParameterDecls.size())
return changes;
const int newParamCount = declaredParameterCount(newFunction);