forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user