diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-11-23 19:17:30 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-11-24 00:26:41 +0100 |
commit | d002d3e8c241f32ac931c1998d7820d5b7b97e64 (patch) | |
tree | a778febf2445f86359f66e80d40b16d2f8f07e83 /svl | |
parent | debb38c7be8015b4de4aace6f8ac78e4ee2fbfa6 (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')
-rw-r--r-- | svl/qa/unit/svl.cxx | 4 | ||||
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 2 | ||||
-rw-r--r-- | svl/source/svdde/ddestrg.cxx | 5 |
3 files changed, 4 insertions, 7 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); diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 04e32464d8b2..7243d0f7105c 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -196,8 +196,8 @@ public: }; SvNumberFormatterRegistry_Impl::SvNumberFormatterRegistry_Impl() + : eSysLanguage(MsLangId::getRealLanguage( LANGUAGE_SYSTEM )) { - eSysLanguage = MsLangId::getRealLanguage( LANGUAGE_SYSTEM ); aSysLocaleOptions.AddListener( this ); } diff --git a/svl/source/svdde/ddestrg.cxx b/svl/source/svdde/ddestrg.cxx index 43fbe5b6d9e4..6789dc1e172f 100644 --- a/svl/source/svdde/ddestrg.cxx +++ b/svl/source/svdde/ddestrg.cxx @@ -23,10 +23,9 @@ #include <o3tl/char16_t2wchar_t.hxx> DdeString::DdeString( DWORD hDdeInst, const OUString& r) - : m_aString(r) + : m_aString(r), hString(DdeCreateStringHandleW( hDdeInst, o3tl::toW(r.getStr()), CP_WINUNICODE )), + hInst(hDdeInst) { - hString = DdeCreateStringHandleW( hDdeInst, o3tl::toW(r.getStr()), CP_WINUNICODE ); - hInst = hDdeInst; } DdeString::~DdeString() |