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 /svtools | |
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 'svtools')
-rw-r--r-- | svtools/source/config/slidesorterbaropt.cxx | 4 | ||||
-rw-r--r-- | svtools/source/control/calendar.cxx | 7 | ||||
-rw-r--r-- | svtools/source/control/ctrltool.cxx | 3 |
3 files changed, 4 insertions, 10 deletions
diff --git a/svtools/source/config/slidesorterbaropt.cxx b/svtools/source/config/slidesorterbaropt.cxx index ecf29453c765..83b10595869c 100644 --- a/svtools/source/config/slidesorterbaropt.cxx +++ b/svtools/source/config/slidesorterbaropt.cxx @@ -120,7 +120,7 @@ class SvtSlideSorterBarOptions_Impl : public ConfigItem SvtSlideSorterBarOptions_Impl::SvtSlideSorterBarOptions_Impl() // Init baseclasses first : ConfigItem( ROOTNODE_SLIDESORTERBAR ) - + , m_seqPropertyNames(GetPropertyNames()) , m_bVisibleImpressView( false ) , m_bVisibleOutlineView( false ) , m_bVisibleNotesView( false ) @@ -129,8 +129,6 @@ SvtSlideSorterBarOptions_Impl::SvtSlideSorterBarOptions_Impl() , m_bVisibleDrawView( false ) { - m_seqPropertyNames = GetPropertyNames( ); - // Use our static list of configuration keys to get his values. Sequence< Any > seqValues = GetProperties( m_seqPropertyNames ); diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx index 023af05b18bc..d1b7f5d119c9 100644 --- a/svtools/source/control/calendar.cxx +++ b/svtools/source/control/calendar.cxx @@ -57,12 +57,9 @@ public: }; ImplCFieldFloatWin::ImplCFieldFloatWin( vcl::Window* pParent ) : - FloatingWindow( pParent, WB_BORDER | WB_SYSTEMWINDOW | WB_NOSHADOW ) + FloatingWindow( pParent, WB_BORDER | WB_SYSTEMWINDOW | WB_NOSHADOW ), + mpCalendar(nullptr), mpTodayBtn(nullptr), mpNoneBtn(nullptr), mpFixedLine(nullptr) { - mpCalendar = nullptr; - mpTodayBtn = nullptr; - mpNoneBtn = nullptr; - mpFixedLine = nullptr; } ImplCFieldFloatWin::~ImplCFieldFloatWin() diff --git a/svtools/source/control/ctrltool.cxx b/svtools/source/control/ctrltool.cxx index 0e8e84174bc4..fbf046328a9b 100644 --- a/svtools/source/control/ctrltool.cxx +++ b/svtools/source/control/ctrltool.cxx @@ -83,9 +83,8 @@ private: public: ImplFontListFontMetric( const FontMetric& rInfo, OutputDevice* pDev ) : - FontMetric( rInfo ), mpNext(nullptr) + FontMetric( rInfo ), mpDevice(pDev), mpNext(nullptr) { - mpDevice = pDev; } OutputDevice* GetDevice() const { return mpDevice; } |