diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-06-01 15:00:09 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-06-01 15:25:56 +0200 |
commit | 92bab25a7da0cba47bb98bf1a65a64cc24192079 (patch) | |
tree | 9f14a7e17a0feba9e4a0537c8a86bc77d856196c /cui | |
parent | 404943048e5bbed5fb19214a9594a91fa6d954bd (diff) |
Use initialization list
Change-Id: Ibaddbd1dfc11382ead2f5ad4ed369bb0cc750fd7
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/hyphen.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cui/source/dialogs/hyphen.cxx b/cui/source/dialogs/hyphen.cxx index c725f7d8f0bd..1febb60ab322 100644 --- a/cui/source/dialogs/hyphen.cxx +++ b/cui/source/dialogs/hyphen.cxx @@ -455,10 +455,11 @@ SvxHyphenWordDialog::SvxHyphenWordDialog( uno::Reference< linguistic2::XHyphenator > &xHyphen, SvxSpellWrapper* pWrapper) : SfxModalDialog(pParent, "HyphenateDialog", "cui/ui/hyphenate.ui") - , pHyphWrapper(NULL) + , pHyphWrapper(pWrapper) , xHyphenator(NULL) , xPossHyph(NULL) - , nActLanguage(LANGUAGE_NONE) + , aActWord(rWord) + , nActLanguage(nLang) , nMaxHyphenationPos(0) , nHyphPos(0) , nOldPos(0) @@ -475,10 +476,7 @@ SvxHyphenWordDialog::SvxHyphenWordDialog( get(m_pCloseBtn, "close"); aLabel = GetText(); - aActWord = rWord; - nActLanguage = nLang; xHyphenator = xHyphen; - pHyphWrapper = pWrapper; uno::Reference< linguistic2::XHyphenatedWord > xHyphWord( pHyphWrapper ? pHyphWrapper->GetLast() : NULL, uno::UNO_QUERY ); |