summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/inc/swfont.hxx4
-rw-r--r--sw/source/core/txtnode/swfont.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx
index 8070d1e2f4cc..c684a9643ee2 100644
--- a/sw/source/core/inc/swfont.hxx
+++ b/sw/source/core/inc/swfont.hxx
@@ -57,8 +57,6 @@ class SwSubFont : public SvxFont
sal_uInt16 m_nOrgAscent; // ascent including escapement/proportion
sal_uInt16 m_nProportionalWidth; // proportional width
bool m_bSmallCapsPercentage66;
- inline SwSubFont() : m_aSize(0,0)
- { m_pMagic = nullptr; m_nFontIndex = m_nOrgHeight = m_nOrgAscent = 0; m_nProportionalWidth =100; m_bSmallCapsPercentage66 = false; }
sal_uInt16 CalcEscAscent( const sal_uInt16 nOldAscent ) const;
sal_uInt16 CalcEscHeight( const sal_uInt16 nOldHeight,
@@ -115,6 +113,8 @@ class SwSubFont : public SvxFont
inline void SetPropWidth( const sal_uInt16 nNew )
{ m_pMagic = nullptr; m_nProportionalWidth = nNew; }
public:
+ inline SwSubFont() : m_aSize(0,0)
+ { m_pMagic = nullptr; m_nFontIndex = m_nOrgHeight = m_nOrgAscent = 0; m_nProportionalWidth =100; m_bSmallCapsPercentage66 = false; }
sal_uInt16 GetPropWidth() const { return m_nProportionalWidth; }
};
diff --git a/sw/source/core/txtnode/swfont.cxx b/sw/source/core/txtnode/swfont.cxx
index b92dccc8ad58..7d7268917b05 100644
--- a/sw/source/core/txtnode/swfont.cxx
+++ b/sw/source/core/txtnode/swfont.cxx
@@ -739,7 +739,7 @@ SwFont::SwFont( const SwFont &rFont )
SwFont::SwFont( const SwAttrSet* pAttrSet,
const IDocumentSettingAccess* pIDocumentSettingAccess )
- : m_aSub { SwSubFont(), SwSubFont(), SwSubFont() }
+ : m_aSub()
{
m_nActual = SwFontScript::Latin;
m_nToxCount = 0;