From e73b10845e98f8423dc32c9d27840aba76dbcbcc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 29 Jun 2018 15:55:15 +0200 Subject: [PATCH] Improved loplugin:redundantcast (const-qualified typedefs): starmath Change-Id: If013783e8a07fa7d8a613d11e5719a064e717852 Reviewed-on: https://gerrit.libreoffice.org/56702 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- starmath/source/cfgitem.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 883f6f6d120b..950c6ca23ce9 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -687,27 +687,27 @@ void SmMathConfig::SaveFontFormatList() // CharSet pVal->Name = aNodeNameDelim; pVal->Name += *pName++; - pVal->Value <<= static_cast(aFntFmt.nCharSet); // 6.0 file-format GetSOStoreTextEncoding not needed + pVal->Value <<= aFntFmt.nCharSet; // 6.0 file-format GetSOStoreTextEncoding not needed pVal++; // Family pVal->Name = aNodeNameDelim; pVal->Name += *pName++; - pVal->Value <<= static_cast(aFntFmt.nFamily); + pVal->Value <<= aFntFmt.nFamily; pVal++; // Pitch pVal->Name = aNodeNameDelim; pVal->Name += *pName++; - pVal->Value <<= static_cast(aFntFmt.nPitch); + pVal->Value <<= aFntFmt.nPitch; pVal++; // Weight pVal->Name = aNodeNameDelim; pVal->Name += *pName++; - pVal->Value <<= static_cast(aFntFmt.nWeight); + pVal->Value <<= aFntFmt.nWeight; pVal++; // Italic pVal->Name = aNodeNameDelim; pVal->Name += *pName++; - pVal->Value <<= static_cast(aFntFmt.nItalic); + pVal->Value <<= aFntFmt.nItalic; pVal++; } OSL_ENSURE( sal::static_int_cast(pVal - pValues) == nCount * nSymbolProps, "properties missing" );