From e598c5f7d0c980176b40bec37f17d8b4aedae1fd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 28 Apr 2017 14:21:47 +0200 Subject: loplugin:cppunitassertequals: configmgr Change-Id: I02d54c1eee815e7c6575a8131d59974089299bdf --- configmgr/qa/unit/test.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'configmgr') diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index f9d7df883810..bc3b31775b6d 100644 --- a/configmgr/qa/unit/test.cxx +++ b/configmgr/qa/unit/test.cxx @@ -165,13 +165,21 @@ RecursiveTest::~RecursiveTest() void RecursiveTest::disposing(css::lang::EventObject const & Source) { - CPPUNIT_ASSERT(properties_.is() && Source.Source == properties_); + CPPUNIT_ASSERT(properties_.is()); + CPPUNIT_ASSERT_EQUAL( + css::uno::Reference( + properties_, css::uno::UNO_QUERY_THROW), + Source.Source); properties_.clear(); } void RecursiveTest::propertyChange(css::beans::PropertyChangeEvent const & evt) { - CPPUNIT_ASSERT( evt.Source == properties_ && evt.PropertyName == "Label" ); + CPPUNIT_ASSERT_EQUAL( + css::uno::Reference( + properties_, css::uno::UNO_QUERY_THROW), + evt.Source); + CPPUNIT_ASSERT_EQUAL( OUString("Label"), evt.PropertyName ); if (count_ > 0) { --count_; step(); -- cgit