diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-05 13:37:06 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-05 16:36:16 -0600 |
commit | bb688f72cc93bd48f20b09b9673712a6a64b40ff (patch) | |
tree | 72334af40606ee6cd14705bca962292264a623cf /editeng | |
parent | coverity#707761-62 Uninitialized scalar field (diff) | |
download | core-bb688f72cc93bd48f20b09b9673712a6a64b40ff.tar.gz core-bb688f72cc93bd48f20b09b9673712a6a64b40ff.zip |
coverity#707764 Uninitialized scalar field
Change-Id: Ibbd13e15b6aca33a8c9050dd0d9f210e64e85e3e
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 3f119d16e245..651b38076644 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -278,31 +278,37 @@ long SvxAutoCorrect::GetDefaultFlags() SvxAutoCorrect::SvxAutoCorrect( const OUString& rShareAutocorrFile, const OUString& rUserAutocorrFile ) - : sShareAutoCorrFile( rShareAutocorrFile ), - sUserAutoCorrFile( rUserAutocorrFile ), - pLangTable( new boost::ptr_map<LanguageTag, SvxAutoCorrectLanguageLists> ), - pCharClass( 0 ), bRunNext( false ), eCharClassLang( LANGUAGE_DONTKNOW ), - cStartDQuote( 0 ), cEndDQuote( 0 ), cStartSQuote( 0 ), cEndSQuote( 0 ) + : sShareAutoCorrFile( rShareAutocorrFile ) + , sUserAutoCorrFile( rUserAutocorrFile ) + , pLangTable( new boost::ptr_map<LanguageTag, SvxAutoCorrectLanguageLists> ) + , pCharClass( 0 ) + , bRunNext( false ) + , eCharClassLang( LANGUAGE_DONTKNOW ) + , nFlags(SvxAutoCorrect::GetDefaultFlags()) + , cStartDQuote( 0 ) + , cEndDQuote( 0 ) + , cStartSQuote( 0 ) + , cEndSQuote( 0 ) + , cEmDash( 0x2014 ) + , cEnDash( 0x2013) { - nFlags = SvxAutoCorrect::GetDefaultFlags(); - - cEmDash = 0x2014; - cEnDash = 0x2013; } SvxAutoCorrect::SvxAutoCorrect( const SvxAutoCorrect& rCpy ) -: sShareAutoCorrFile( rCpy.sShareAutoCorrFile ), - sUserAutoCorrFile( rCpy.sUserAutoCorrFile ), - - aSwFlags( rCpy.aSwFlags ), - - pLangTable( new boost::ptr_map<LanguageTag, SvxAutoCorrectLanguageLists> ), - pCharClass( 0 ), bRunNext( false ), - - nFlags( rCpy.nFlags & ~(ChgWordLstLoad|CplSttLstLoad|WrdSttLstLoad)), - cStartDQuote( rCpy.cStartDQuote ), cEndDQuote( rCpy.cEndDQuote ), - cStartSQuote( rCpy.cStartSQuote ), cEndSQuote( rCpy.cEndSQuote ), - cEmDash( rCpy.cEmDash ), cEnDash( rCpy.cEnDash ) + : sShareAutoCorrFile( rCpy.sShareAutoCorrFile ) + , sUserAutoCorrFile( rCpy.sUserAutoCorrFile ) + , aSwFlags( rCpy.aSwFlags ) + , pLangTable( new boost::ptr_map<LanguageTag, SvxAutoCorrectLanguageLists> ) + , pCharClass( 0 ) + , bRunNext( false ) + , eCharClassLang(rCpy.eCharClassLang) + , nFlags( rCpy.nFlags & ~(ChgWordLstLoad|CplSttLstLoad|WrdSttLstLoad)) + , cStartDQuote( rCpy.cStartDQuote ) + , cEndDQuote( rCpy.cEndDQuote ) + , cStartSQuote( rCpy.cStartSQuote ) + , cEndSQuote( rCpy.cEndSQuote ) + , cEmDash( rCpy.cEmDash ) + , cEnDash( rCpy.cEnDash ) { } |