[Libreoffice-commits] core.git: vcl/source
Chris Sherlock
chris.sherlock79 at gmail.com
Thu Jan 14 19:09:27 PST 2016
vcl/source/font/font.cxx | 51 +++++++++++++++++++++++------------------------
1 file changed, 25 insertions(+), 26 deletions(-)
New commits:
commit cc8a30f51860e31639c3be31d356311479dd3027
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date: Fri Jan 15 14:08:51 2016 +1100
vcl: convert next ImplFont constructor to use initializer list
Change-Id: I07cdbcaac0775fcfeb5c02846e00a61f8fa92c79
diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx
index 917691d..c01e5a7 100644
--- a/vcl/source/font/font.cxx
+++ b/vcl/source/font/font.cxx
@@ -65,37 +65,36 @@ ImplFont::ImplFont() :
mbTransparent( true )
{}
-ImplFont::ImplFont( const ImplFont& rImplFont )
-: maFamilyName( rImplFont.maFamilyName ),
+ImplFont::ImplFont( const ImplFont& rImplFont ) :
+ mnRefCount( 1 ),
+ maFamilyName( rImplFont.maFamilyName ),
maStyleName( rImplFont.maStyleName ),
maSize( rImplFont.maSize ),
maColor( rImplFont.maColor ),
maFillColor( rImplFont.maFillColor ),
+ meCharSet( rImplFont.meCharSet ),
maLanguageTag( rImplFont.maLanguageTag ),
- maCJKLanguageTag( rImplFont.maCJKLanguageTag )
-{
- mnRefCount = 1;
- meCharSet = rImplFont.meCharSet;
- meFamily = rImplFont.meFamily;
- mePitch = rImplFont.mePitch;
- meAlign = rImplFont.meAlign;
- meWeight = rImplFont.meWeight;
- meWidthType = rImplFont.meWidthType;
- meItalic = rImplFont.meItalic;
- meUnderline = rImplFont.meUnderline;
- meOverline = rImplFont.meOverline;
- meStrikeout = rImplFont.meStrikeout;
- meRelief = rImplFont.meRelief;
- meEmphasisMark = rImplFont.meEmphasisMark;
- mnOrientation = rImplFont.mnOrientation;
- mnKerning = rImplFont.mnKerning;
- mbWordLine = rImplFont.mbWordLine;
- mbOutline = rImplFont.mbOutline;
- mbShadow = rImplFont.mbShadow;
- mbVertical = rImplFont.mbVertical;
- mbTransparent = rImplFont.mbTransparent;
- mbConfigLookup = rImplFont.mbConfigLookup;
-}
+ maCJKLanguageTag( rImplFont.maCJKLanguageTag ),
+ meFamily( rImplFont.meFamily ),
+ mePitch( rImplFont.mePitch ),
+ meAlign( rImplFont.meAlign ),
+ meWeight( rImplFont.meWeight ),
+ meWidthType( rImplFont.meWidthType ),
+ meItalic( rImplFont.meItalic ),
+ meUnderline( rImplFont.meUnderline ),
+ meOverline( rImplFont.meOverline ),
+ meStrikeout( rImplFont.meStrikeout ),
+ meRelief( rImplFont.meRelief ),
+ meEmphasisMark( rImplFont.meEmphasisMark ),
+ mnOrientation( rImplFont.mnOrientation ),
+ mnKerning( rImplFont.mnKerning ),
+ mbWordLine( rImplFont.mbWordLine ),
+ mbOutline( rImplFont.mbOutline ),
+ mbConfigLookup( rImplFont.mbConfigLookup ),
+ mbShadow( rImplFont.mbShadow ),
+ mbVertical( rImplFont.mbVertical ),
+ mbTransparent( rImplFont.mbTransparent )
+{}
bool ImplFont::operator==( const ImplFont& rOther ) const
{
More information about the Libreoffice-commits
mailing list