summaryrefslogtreecommitdiff
path: root/svl/qa
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-11-23 19:17:30 +0100
committerJulien Nabet <serval2412@yahoo.fr>2019-11-24 00:26:41 +0100
commitd002d3e8c241f32ac931c1998d7820d5b7b97e64 (patch)
treea778febf2445f86359f66e80d40b16d2f8f07e83 /svl/qa
parentdebb38c7be8015b4de4aace6f8ac78e4ee2fbfa6 (diff)
cppcheck: performing init in init list (sot/svl/svtools/svx)
order had been changed in svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx so initialization list was fine Indeed mpActLineDistFld depends on mpLineDistAtMetricBox Change-Id: I974e68892fe7ab900774bbe912c51ec56ba4ee43 Reviewed-on: https://gerrit.libreoffice.org/83577 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svl/qa')
-rw-r--r--svl/qa/unit/svl.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index d30a7b6279ec..8eb3cf4b6dfa 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -101,10 +101,8 @@ private:
std::unique_ptr<icu::TimeZone> m_pDefaultTimeZone;
};
-Test::Test()
+Test::Test() : m_xContext(cppu::defaultBootstrap_InitialComponentContext())
{
- m_xContext = cppu::defaultBootstrap_InitialComponentContext();
-
uno::Reference<lang::XMultiComponentFactory> xFactory(m_xContext->getServiceManager());
uno::Reference<lang::XMultiServiceFactory> xSM(xFactory, uno::UNO_QUERY_THROW);