Kaydet (Commit) 0e8be4be authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove trivial CoreTextFontData::CreateTextStyle wrapper

Change-Id: Ic57551d9a3590769f97742d41f089dbb3ce248a9
üst 565611a1
...@@ -63,7 +63,6 @@ public: ...@@ -63,7 +63,6 @@ public:
ImplFontEntry* CreateFontInstance( FontSelectPattern& ) const SAL_OVERRIDE; ImplFontEntry* CreateFontInstance( FontSelectPattern& ) const SAL_OVERRIDE;
sal_IntPtr GetFontId() const SAL_OVERRIDE; sal_IntPtr GetFontId() const SAL_OVERRIDE;
CoreTextStyle* CreateTextStyle( const FontSelectPattern& ) const;
int GetFontTable( const char pTagName[5], unsigned char* ) const; int GetFontTable( const char pTagName[5], unsigned char* ) const;
const FontCharMapPtr GetFontCharMap() const; const FontCharMapPtr GetFontCharMap() const;
......
...@@ -223,11 +223,6 @@ PhysicalFontFace* CoreTextFontData::Clone() const ...@@ -223,11 +223,6 @@ PhysicalFontFace* CoreTextFontData::Clone() const
return new CoreTextFontData( *this); return new CoreTextFontData( *this);
} }
CoreTextStyle* CoreTextFontData::CreateTextStyle( const FontSelectPattern& rFSD ) const
{
return new CoreTextStyle( rFSD);
}
ImplFontEntry* CoreTextFontData::CreateFontInstance( /*const*/ FontSelectPattern& rFSD ) const ImplFontEntry* CoreTextFontData::CreateFontInstance( /*const*/ FontSelectPattern& rFSD ) const
{ {
return new ImplFontEntry( rFSD); return new ImplFontEntry( rFSD);
......
...@@ -435,7 +435,7 @@ sal_uInt16 AquaSalGraphics::SetFont( FontSelectPattern* pReqFont, int /*nFallbac ...@@ -435,7 +435,7 @@ sal_uInt16 AquaSalGraphics::SetFont( FontSelectPattern* pReqFont, int /*nFallbac
// update the text style // update the text style
mpFontData = static_cast<const CoreTextFontData*>( pReqFont->mpFontData ); mpFontData = static_cast<const CoreTextFontData*>( pReqFont->mpFontData );
mpTextStyle = mpFontData->CreateTextStyle( *pReqFont ); mpTextStyle = new CoreTextStyle( *pReqFont );
mpTextStyle->SetTextColor( maTextColor ); mpTextStyle->SetTextColor( maTextColor );
SAL_INFO("vcl.ct", SAL_INFO("vcl.ct",
......
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