From 0d36b32755ac662299e6a8165e9fa57311b74a2f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 28 Jul 2019 12:03:35 +0200 Subject: loplugin:sequentialassign Change-Id: I56a9bf698b60bd278c71cc632aacef2bd2f4c13f Reviewed-on: https://gerrit.libreoffice.org/76501 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cppuhelper/qa') diff --git a/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx b/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx index e7727cc5f2ce..43a9d87df927 100644 --- a/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx +++ b/cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx @@ -107,8 +107,7 @@ namespace cppu_ifcontainer pContainer->addInterface(xRef); aListeners.push_back(xRef); } - Sequence< Reference< XInterface > > aElements; - aElements = pContainer->getElements(); + Sequence< Reference< XInterface > > aElements = pContainer->getElements(); CPPUNIT_ASSERT_MESSAGE("query contents", bool(static_cast(aElements.getLength()) == nTests)); -- cgit