summaryrefslogtreecommitdiff
path: root/tests/auto/client/inputcontext/tst_inputcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/client/inputcontext/tst_inputcontext.cpp')
-rw-r--r--tests/auto/client/inputcontext/tst_inputcontext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/client/inputcontext/tst_inputcontext.cpp b/tests/auto/client/inputcontext/tst_inputcontext.cpp
index 9bcfa9e7..328dc1fb 100644
--- a/tests/auto/client/inputcontext/tst_inputcontext.cpp
+++ b/tests/auto/client/inputcontext/tst_inputcontext.cpp
@@ -36,9 +36,9 @@ private:
{
exec([&] {
QList<arg_type *> extensions = getAll<arg_type>();
- if (extensions.length() > 1)
+ if (extensions.size() > 1)
QFAIL("Requested type is a singleton, hence there should not be more then one object returned");
- if (extensions.length() == 0)
+ if (extensions.size() == 0)
add<arg_type>();
});
}
@@ -48,9 +48,9 @@ private:
{
exec([&] {
QList<arg_type *> extensions = getAll<arg_type>();
- if (extensions.length() > 1)
+ if (extensions.size() > 1)
QFAIL("Requested type is a singleton, hence there should not be more then one object returned");
- if (extensions.length() == 1)
+ if (extensions.size() == 1)
remove(extensions.first());
});
}