diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2016-05-02 21:51:05 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2016-05-10 21:38:39 +0200 |
commit | a123e824d985750288567b18ec609546e1f09ebc (patch) | |
tree | fdf47f26bd3402a51d09fb9c2df623e91bc28f7b /vcl/source | |
parent | 297e22838e1acbb7ffaa1d4879c3f56718ac947a (diff) |
Use member initialization list
Change-Id: I98486822d1cac8fd16c8d916011c3d99baf1f1ae
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/edit/texteng.cxx | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 410c8a5dc0d1..acb1cb8d43b9 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -63,33 +63,34 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::uno; TextEngine::TextEngine() + : mpDoc {nullptr} + , mpTEParaPortions {nullptr} + , mpViews {nullptr} + , mpActiveView {nullptr} + , mpUndoManager {nullptr} + , mpIdleFormatter {nullptr} + , mpIMEInfos {nullptr} + , mpLocaleDataWrapper {nullptr} + , maTextColor {COL_BLACK} + , mnFixCharWidth100 {0} + , mnMaxTextLen {0} + , mnMaxTextWidth {0} + , mnCharHeight {0} + , mnCurTextWidth {-1} + , mnCurTextHeight {0} + , mnDefTab {0} + , meAlign {TXTALIGN_LEFT} + , mbIsFormatting {false} + , mbFormatted {false} + , mbUpdate {true} + , mbModified {false} + , mbUndoEnabled {false} + , mbIsInUndo {false} + , mbDowning {false} + , mbRightToLeft {false} + , mbHasMultiLineParas {false} { - mpDoc = nullptr; - mpTEParaPortions = nullptr; - mpViews = new TextViews; - mpActiveView = nullptr; - - mbIsFormatting = false; - mbFormatted = false; - mbUpdate = true; - mbModified = false; - mbUndoEnabled = false; - mbIsInUndo = false; - mbDowning = false; - mbRightToLeft = false; - mbHasMultiLineParas = false; - - meAlign = TXTALIGN_LEFT; - - mnMaxTextWidth = 0; - mnMaxTextLen = 0; - mnCurTextWidth = -1; - mnCurTextHeight = 0; - - mpUndoManager = nullptr; - mpIMEInfos = nullptr; - mpLocaleDataWrapper = nullptr; mpIdleFormatter = new IdleFormatter; mpIdleFormatter->SetIdleHdl( LINK( this, TextEngine, IdleFormatHdl ) ); @@ -100,7 +101,6 @@ TextEngine::TextEngine() ImpInitDoc(); - maTextColor = COL_BLACK; vcl::Font aFont; aFont.SetTransparent( false ); Color aFillColor( aFont.GetFillColor() ); |