summaryrefslogtreecommitdiff
path: root/sfx2/source/bastyp/sfxhtml.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-04-17 21:35:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-26 08:50:54 +0200
commitc70d49c7c888da8cfd73db8585e7be1f37fc398a (patch)
treec0e540401850018464ca76300536faf9aa7e27d2 /sfx2/source/bastyp/sfxhtml.cxx
parentcd4344d3bdef631b3e64ac12a9e64bc9670c1b7c (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 'sfx2/source/bastyp/sfxhtml.cxx')
-rw-r--r--sfx2/source/bastyp/sfxhtml.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/bastyp/sfxhtml.cxx b/sfx2/source/bastyp/sfxhtml.cxx
index 406bd63c5d24..70c2741d408e 100644
--- a/sfx2/source/bastyp/sfxhtml.cxx
+++ b/sfx2/source/bastyp/sfxhtml.cxx
@@ -322,13 +322,13 @@ double SfxHTMLParser::GetTableDataOptionsValNum( sal_uInt32& nNumForm,
LanguageType& eNumLang, const OUString& aValStr, const OUString& aNumStr,
SvNumberFormatter& rFormatter )
{
- LanguageType eParseLang = (LanguageType )aNumStr.toInt32();
+ LanguageType eParseLang(aNumStr.toInt32());
sal_uInt32 nParseForm = rFormatter.GetFormatForLanguageIfBuiltIn( 0, eParseLang );
double fVal;
(void)rFormatter.IsNumberFormat(aValStr, nParseForm, fVal);
if ( comphelper::string::getTokenCount(aNumStr, ';') > 2 )
{
- eNumLang = (LanguageType)aNumStr.getToken( 1, ';' ).toInt32();
+ eNumLang = LanguageType(aNumStr.getToken( 1, ';' ).toInt32());
sal_Int32 nPos = aNumStr.indexOf( ';' );
nPos = aNumStr.indexOf( ';', nPos + 1 );
OUString aFormat( aNumStr.copy( nPos + 1 ) );