summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-06 18:31:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-06 18:31:14 +0200
commit1221ee605ac3bcab982bd8e63c5fbf39bbfd605c (patch)
tree4ebde0d0ad05f8d91ad056b7f7ea89575d8e8e01 /starmath
parentf392d3b1233ee0ee74456595e6bd5fdb3853da19 (diff)
Improved loplugin:redundantcast, static_cast on arithmetic types: starmath
Change-Id: I59f875a09b4f397c3ba1fe445ed5b3c970e2fc05
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cfgitem.cxx4
-rw-r--r--starmath/source/unomodel.cxx2
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 :