aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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()