Kaydet (Commit) 011e65c9 authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Michael Stahl

starmath: Use initialization list for some ctors

Change-Id: I51b5df153574a2dfba96106a6268ccdf9715934d
Reviewed-on: https://gerrit.libreoffice.org/23423Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 056be355
......@@ -133,36 +133,40 @@ struct SmCfgOther
SmCfgOther::SmCfgOther()
: ePrintSize(PRINT_SIZE_NORMAL)
, nPrintZoomFactor(100)
, bPrintTitle(true)
, bPrintFormulaText(true)
, bPrintFrame(true)
, bIsSaveOnlyUsedSymbols(true)
, bIsAutoCloseBrackets(true)
, bIgnoreSpacesRight(true)
, bToolboxVisible(true)
, bAutoRedraw(true)
, bFormulaCursor(true)
{
ePrintSize = PRINT_SIZE_NORMAL;
nPrintZoomFactor = 100;
bPrintTitle = bPrintFormulaText =
bPrintFrame = bIgnoreSpacesRight =
bToolboxVisible = bAutoRedraw =
bIsAutoCloseBrackets = bFormulaCursor
= bIsSaveOnlyUsedSymbols = true;
}
SmFontFormat::SmFontFormat()
: aName(FONTNAME_MATH)
, nCharSet(RTL_TEXTENCODING_UNICODE)
, nFamily(FAMILY_DONTKNOW)
, nPitch(PITCH_DONTKNOW)
, nWeight(WEIGHT_DONTKNOW)
, nItalic(ITALIC_NONE)
{
aName = FONTNAME_MATH;
nCharSet = RTL_TEXTENCODING_UNICODE;
nFamily = FAMILY_DONTKNOW;
nPitch = PITCH_DONTKNOW;
nWeight = WEIGHT_DONTKNOW;
nItalic = ITALIC_NONE;
}
SmFontFormat::SmFontFormat( const vcl::Font &rFont )
: aName(rFont.GetFamilyName())
, nCharSet(static_cast<sal_Int16>(rFont.GetCharSet()))
, nFamily(static_cast<sal_Int16>(rFont.GetFamilyType()))
, nPitch(static_cast<sal_Int16>(rFont.GetPitch()))
, nWeight(static_cast<sal_Int16>(rFont.GetWeight()))
, nItalic(static_cast<sal_Int16>(rFont.GetItalic()))
{
aName = rFont.GetFamilyName();
nCharSet = static_cast<sal_Int16>(rFont.GetCharSet());
nFamily = static_cast<sal_Int16>(rFont.GetFamilyType());
nPitch = static_cast<sal_Int16>(rFont.GetPitch());
nWeight = static_cast<sal_Int16>(rFont.GetWeight());
nItalic = static_cast<sal_Int16>(rFont.GetItalic());
}
......@@ -198,8 +202,8 @@ SmFntFmtListEntry::SmFntFmtListEntry( const OUString &rId, const SmFontFormat &r
SmFontFormatList::SmFontFormatList()
: bModified(false)
{
bModified = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment