From 01b4c5b27f38d606b05e7a9236ec151e8039972a Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sat, 28 Jul 2018 21:21:17 +0200 Subject: cppcheck: useInitializationList in test to xmloff Change-Id: I50545784c5412ab7767f401c6e40058a1d0bfab0 Reviewed-on: https://gerrit.libreoffice.org/58262 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'unotest') diff --git a/unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx b/unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx index 2603f1607791..0d4d79321a99 100644 --- a/unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx +++ b/unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx @@ -74,9 +74,8 @@ private: Prot::Prot() + : m_xContext(cppu::defaultBootstrap_InitialComponentContext()) { - m_xContext = cppu::defaultBootstrap_InitialComponentContext(); - uno::Reference xFactory = m_xContext->getServiceManager(); uno::Reference xSFactory(xFactory, uno::UNO_QUERY_THROW); -- cgit