aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-06-09 11:11:37 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:04 -0300
commit3649c91f1bdad3ce7db3ff895ae40edf06fc232e (patch)
treed4f41966ff8e1ddc6e267b3c4ff3da75364b12e0 /tests
parent96316113bcd6e60bc602def066cb03ec5ece436b (diff)
Enable warning for arguments without name.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testmodifyfunction.cpp7
1 files changed, 1 insertions, 6 deletions
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()