Commit 85ead5f0 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

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: default avatarFawzi Mohamed <>
parent d23d81f9
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment