diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-09-01 18:53:22 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:19 -0300 |
commit | e7fdca6465740132bd881ffd9d20e61be47472d0 (patch) | |
tree | 00b4b44348d9389e4e394d08b99b11478f88d63c /tests/testrefcounttag.cpp | |
parent | 2d3a55bd847616a9b666531795d3b99e5c78a56a (diff) |
Fixes method's argument types that are templates but the template variable wasn't declared.
An unit test was added.
Other unrelated tests had minor improvements.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/testrefcounttag.cpp')
-rw-r--r-- | tests/testrefcounttag.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testrefcounttag.cpp b/tests/testrefcounttag.cpp index 424055f2c..9e05cee93 100644 --- a/tests/testrefcounttag.cpp +++ b/tests/testrefcounttag.cpp @@ -48,7 +48,7 @@ void TestRefCountTag::testReferenceCountTag() AbstractMetaClassList classes = t.builder()->classes(); AbstractMetaClass* classB = classes.findClass("B"); const AbstractMetaFunction* func = classB->findFunction("keepObject"); - + QVERIFY(func); ReferenceCount refCount = func->modifications().first().argument_mods.first().referenceCounts.first(); QCOMPARE(refCount.action, ReferenceCount::Add); } @@ -80,7 +80,7 @@ void TestRefCountTag::testWithApiVersion() AbstractMetaClassList classes = t.builder()->classes(); AbstractMetaClass* classB = classes.findClass("B"); const AbstractMetaFunction* func = classB->findFunction("keepObject"); - + QVERIFY(func); ReferenceCount refCount = func->modifications().first().argument_mods.first().referenceCounts.first(); QCOMPARE(refCount.action, ReferenceCount::Add); |