Improved loplugin:redundantcast (const-qualified typedefs): starmath
Change-Id: If013783e8a07fa7d8a613d11e5719a064e717852 Reviewed-on: https://gerrit.libreoffice.org/56702 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -687,27 +687,27 @@ void SmMathConfig::SaveFontFormatList()
|
|||||||
// CharSet
|
// CharSet
|
||||||
pVal->Name = aNodeNameDelim;
|
pVal->Name = aNodeNameDelim;
|
||||||
pVal->Name += *pName++;
|
pVal->Name += *pName++;
|
||||||
pVal->Value <<= static_cast<sal_Int16>(aFntFmt.nCharSet); // 6.0 file-format GetSOStoreTextEncoding not needed
|
pVal->Value <<= aFntFmt.nCharSet; // 6.0 file-format GetSOStoreTextEncoding not needed
|
||||||
pVal++;
|
pVal++;
|
||||||
// Family
|
// Family
|
||||||
pVal->Name = aNodeNameDelim;
|
pVal->Name = aNodeNameDelim;
|
||||||
pVal->Name += *pName++;
|
pVal->Name += *pName++;
|
||||||
pVal->Value <<= static_cast<sal_Int16>(aFntFmt.nFamily);
|
pVal->Value <<= aFntFmt.nFamily;
|
||||||
pVal++;
|
pVal++;
|
||||||
// Pitch
|
// Pitch
|
||||||
pVal->Name = aNodeNameDelim;
|
pVal->Name = aNodeNameDelim;
|
||||||
pVal->Name += *pName++;
|
pVal->Name += *pName++;
|
||||||
pVal->Value <<= static_cast<sal_Int16>(aFntFmt.nPitch);
|
pVal->Value <<= aFntFmt.nPitch;
|
||||||
pVal++;
|
pVal++;
|
||||||
// Weight
|
// Weight
|
||||||
pVal->Name = aNodeNameDelim;
|
pVal->Name = aNodeNameDelim;
|
||||||
pVal->Name += *pName++;
|
pVal->Name += *pName++;
|
||||||
pVal->Value <<= static_cast<sal_Int16>(aFntFmt.nWeight);
|
pVal->Value <<= aFntFmt.nWeight;
|
||||||
pVal++;
|
pVal++;
|
||||||
// Italic
|
// Italic
|
||||||
pVal->Name = aNodeNameDelim;
|
pVal->Name = aNodeNameDelim;
|
||||||
pVal->Name += *pName++;
|
pVal->Name += *pName++;
|
||||||
pVal->Value <<= static_cast<sal_Int16>(aFntFmt.nItalic);
|
pVal->Value <<= aFntFmt.nItalic;
|
||||||
pVal++;
|
pVal++;
|
||||||
}
|
}
|
||||||
OSL_ENSURE( sal::static_int_cast<size_t>(pVal - pValues) == nCount * nSymbolProps, "properties missing" );
|
OSL_ENSURE( sal::static_int_cast<size_t>(pVal - pValues) == nCount * nSymbolProps, "properties missing" );
|
||||||
|
Reference in New Issue
Block a user