diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-04-17 21:35:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-26 08:50:54 +0200 |
commit | c70d49c7c888da8cfd73db8585e7be1f37fc398a (patch) | |
tree | c0e540401850018464ca76300536faf9aa7e27d2 /editeng/source/rtf | |
parent | cd4344d3bdef631b3e64ac12a9e64bc9670c1b7c (diff) |
use strong_int for LanguageType
Change-Id: If99a944f7032180355da291ad283b4cfcea4f448
Reviewed-on: https://gerrit.libreoffice.org/36629
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/rtf')
-rw-r--r-- | editeng/source/rtf/rtfitem.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx index da91b578ff33..e891184b8c14 100644 --- a/editeng/source/rtf/rtfitem.cxx +++ b/editeng/source/rtf/rtfitem.cxx @@ -956,7 +956,7 @@ ATTR_SETOVERLINE: case RTF_LANG: if( aPlainMap.nLanguage ) { - pSet->Put( SvxLanguageItem( (LanguageType)nTokenValue, + pSet->Put( SvxLanguageItem( LanguageType(nTokenValue), aPlainMap.nLanguage )); } break; @@ -964,13 +964,13 @@ ATTR_SETOVERLINE: case RTF_LANGFE: if( aPlainMap.nCJKLanguage ) { - pSet->Put( SvxLanguageItem( (LanguageType)nTokenValue, + pSet->Put( SvxLanguageItem( LanguageType(nTokenValue), aPlainMap.nCJKLanguage )); } break; case RTF_ALANG: { - SvxLanguageItem aTmpItem( (LanguageType)nTokenValue, + SvxLanguageItem aTmpItem( LanguageType(nTokenValue), SID_ATTR_CHAR_LANGUAGE ); SetScriptAttr( eCharType, *pSet, aTmpItem ); } @@ -1835,8 +1835,7 @@ void SvxRTFParser::SetDefault( int nToken, int nValue ) // store default Language if( -1 != nValue ) { - SvxLanguageItem aTmpItem( (const LanguageType)nValue, - SID_ATTR_CHAR_LANGUAGE ); + SvxLanguageItem aTmpItem( LanguageType(nValue), SID_ATTR_CHAR_LANGUAGE ); SetScriptAttr( NOTDEF_CHARTYPE, aTmp, aTmpItem ); } break; |