diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2012-04-25 11:09:48 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-20 03:17:55 +0200 |
commit | 958aaf377069368ce409db3f09a6ac3e38af7de2 (patch) | |
tree | baf9c866d5946bbabefcf6149c226a9ad023b49d /tests | |
parent | e4505acd12435f1b7d0dabe79823ccb7e26011e9 (diff) |
Add qMove macro to support std::move
Change-Id: I373e07f479c11b172dab35ed7e5b62724aa50a1a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/other/collections/tst_collections.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/other/collections/tst_collections.cpp b/tests/auto/other/collections/tst_collections.cpp index 26e3ccfce4..f9905ce669 100644 --- a/tests/auto/other/collections/tst_collections.cpp +++ b/tests/auto/other/collections/tst_collections.cpp @@ -2556,6 +2556,9 @@ void testContainer() c1 = newInstance<Container>(); QVERIFY(c1.size() == 4); QVERIFY(c1 == newInstance<Container>()); + Container c2 = qMove(c1); + QVERIFY(c2.size() == 4); + QVERIFY(c2 == newInstance<Container>()); } } |