[PATCH] Use member initializer list in constructor

Matteo Casalin (via Code Review) gerrit at gerrit.libreoffice.org
Fri Jan 11 00:08:02 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1640

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/40/1640/1

Use member initializer list in constructor

Change-Id: I8d4f8b95909b91917b456f49d7a3ac270703cc96
---
M sw/source/ui/lingu/hhcwrp.cxx
1 file changed, 14 insertions(+), 14 deletions(-)



diff --git a/sw/source/ui/lingu/hhcwrp.cxx b/sw/source/ui/lingu/hhcwrp.cxx
index f1ec1d5..82e7d3a 100644
--- a/sw/source/ui/lingu/hhcwrp.cxx
+++ b/sw/source/ui/lingu/hhcwrp.cxx
@@ -103,21 +103,21 @@
                                 pTargetFont,
                                 nConvOptions,
                                 bIsInteractive ),
-    mrWrtShell( pSwView->GetWrtShell() )
+    mpView( pSwView ),
+    mpWin( &pSwView->GetEditWin() ),
+    mrWrtShell( pSwView->GetWrtShell() ),
+    mpConvArgs( 0 ),
+    mnLastPos( 0 ),
+    mnUnitOffset( 0 ),
+    mnPageCount( 0 ),
+    mnPageStart( 0 ),
+    mbIsDrawObj( sal_False ),
+    mbIsOtherCntnt( bOther ),
+    mbStartChk( bOther ),
+    mbIsSelection( bSelection ),
+    mbStartDone( bOther || bStart ),
+    mbEndDone( sal_False )
 {
-    mpConvArgs      = 0;
-    mnLastPos       = 0;
-    mnUnitOffset    = 0;
-
-    mpView          = pSwView;
-    mpWin           = &pSwView->GetEditWin();
-    mbIsDrawObj     = sal_False;
-    mbIsOtherCntnt  = mbStartChk     = bOther;
-    mbIsSelection   = bSelection;
-    mbStartDone  = bOther || bStart;
-    mbEndDone    = sal_False;
-//    bLastRet    = sal_True;
-    mnPageCount = mnPageStart = 0;
 }
 
 

-- 
To view, visit https://gerrit.libreoffice.org/1640
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8d4f8b95909b91917b456f49d7a3ac270703cc96
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Matteo Casalin <matteo.casalin at gmx.com>



More information about the LibreOffice mailing list