From 3649c91f1bdad3ce7db3ff895ae40edf06fc232e Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Wed, 9 Jun 2010 11:11:37 -0300 Subject: Enable warning for arguments without name. Reviewer: Luciano Wolf , Marcelo Lira --- tests/testmodifyfunction.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/testmodifyfunction.cpp b/tests/testmodifyfunction.cpp index 7fa8833f1..930ccdca8 100644 --- a/tests/testmodifyfunction.cpp +++ b/tests/testmodifyfunction.cpp @@ -49,12 +49,7 @@ void TestModifyFunction::testRenameArgument() const AbstractMetaFunction* func = classA->findFunction("method"); Q_ASSERT(func); - FunctionModificationList modList = func->modifications(classA); - QVERIFY(modList.size() == 1); - FunctionModification mod = modList.at(0); - QVERIFY(mod.argument_mods.size() == 1); - - QCOMPARE(mod.argument_mods.at(0).renamed_to, QString("otherArg")); + QCOMPARE(func->argumentName(1), QString("otherArg")); } void TestModifyFunction::testOwnershipTransfer() -- cgit v1.2.3