diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-06 18:31:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-06 18:31:14 +0200 |
commit | 1221ee605ac3bcab982bd8e63c5fbf39bbfd605c (patch) | |
tree | 4ebde0d0ad05f8d91ad056b7f7ea89575d8e8e01 /starmath/source | |
parent | f392d3b1233ee0ee74456595e6bd5fdb3853da19 (diff) |
Improved loplugin:redundantcast, static_cast on arithmetic types: starmath
Change-Id: I59f875a09b4f397c3ba1fe445ed5b3c970e2fc05
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/cfgitem.cxx | 4 | ||||
-rw-r--r-- | starmath/source/unomodel.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 6e94785d305b..ea4e4c01634a 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -518,7 +518,7 @@ void SmMathConfig::SetSymbols( const std::vector< SmSym > &rNewSymbols ) // Char pVal->Name = aNodeNameDelim; pVal->Name += *pName++; - pVal->Value <<= static_cast< sal_UCS4 >( rSymbol.GetCharacter() ); + pVal->Value <<= rSymbol.GetCharacter(); pVal++; // Set pVal->Name = aNodeNameDelim; @@ -903,7 +903,7 @@ void SmMathConfig::SaveFormat() // StandardFormat/Textmode *pValue++ <<= pFormat->IsTextmode(); // StandardFormat/GreekCharStyle - *pValue++ <<= static_cast<sal_Int16>(pFormat->GetGreekCharStyle()); + *pValue++ <<= pFormat->GetGreekCharStyle(); // StandardFormat/ScaleNormalBracket *pValue++ <<= pFormat->IsScaleNormalBrackets(); // StandardFormat/HorizontalAlignment diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 2037b222b163..8e9f584ce64a 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -762,7 +762,7 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu break; case HANDLE_GREEK_CHAR_STYLE : - *pValue <<= static_cast<sal_Int16>(aFormat.GetGreekCharStyle()); + *pValue <<= aFormat.GetGreekCharStyle(); break; case HANDLE_ALIGNMENT : |