clang-tidy bugprone-use-after-move

Change-Id: I93c33da06f638ec6c8432bd13f992c320cfde93e
Reviewed-on: https://gerrit.libreoffice.org/60158
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2018-09-07 11:24:36 +02:00
parent 867ee21fe4
commit 6d180f09f2

View File

@@ -223,7 +223,7 @@ public:
BogusRefCountPolicy::s_bShouldDecrement = true;
aTestObj3 = std::move( aTestObj2 );
CPPUNIT_ASSERT_EQUAL_MESSAGE("aTestObj2.use_count()",
static_cast<sal_uInt32>(0), aTestObj2.use_count() );
static_cast<sal_uInt32>(0), aTestObj2.use_count() ); // NOLINT(bugprone-use-after-move)
CPPUNIT_ASSERT_EQUAL_MESSAGE("aTestObj3.use_count()",
static_cast<sal_uInt32>(1), aTestObj3.use_count() );