diff options
author | navin <patidar@kacst.edu.sa> | 2013-01-06 16:18:00 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-01-07 10:19:47 +0000 |
commit | 1e1ba8611fb134fb693354daae8931e93e46124c (patch) | |
tree | 46b8c0a25110796ae621bb10e37e6b6697e292ac /vcl/source/gdi/font.cxx | |
parent | b40d74a4430d7c6e1def1720335b4e87aa07c803 (diff) |
Change public variables of class ImplFontAttributes to private.
Change-Id: I56ff5d7d2420c334c6fc9e4c552f8b5c4715d93f
Reviewed-on: https://gerrit.libreoffice.org/1551
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'vcl/source/gdi/font.cxx')
-rw-r--r-- | vcl/source/gdi/font.cxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/vcl/source/gdi/font.cxx b/vcl/source/gdi/font.cxx index 11897d04bd30..bbb74ed0f50f 100644 --- a/vcl/source/gdi/font.cxx +++ b/vcl/source/gdi/font.cxx @@ -750,15 +750,14 @@ void Font::Merge( const Font& rFont ) void Font::GetFontAttributes( ImplFontAttributes& rAttrs ) const { - // #i56788# Use members directly, don't risc config access. - rAttrs.maName = mpImplFont->maFamilyName; - rAttrs.maStyleName = mpImplFont->maStyleName; - rAttrs.meFamily = mpImplFont->meFamily; - rAttrs.mePitch = mpImplFont->mePitch; - rAttrs.meItalic = mpImplFont->meItalic; - rAttrs.meWeight = mpImplFont->meWeight; - rAttrs.meWidthType = WIDTH_DONTKNOW; - rAttrs.mbSymbolFlag= (mpImplFont->meCharSet == RTL_TEXTENCODING_SYMBOL); + rAttrs.SetFamilyName( mpImplFont->maFamilyName ); + rAttrs.SetStyleName( mpImplFont->maStyleName ); + rAttrs.SetFamilyType( mpImplFont->meFamily ); + rAttrs.SetPitch( mpImplFont->mePitch ); + rAttrs.SetItalic( mpImplFont->meItalic ); + rAttrs.SetWeight( mpImplFont->meWeight ); + rAttrs.SetWidthType( WIDTH_DONTKNOW ); + rAttrs.SetSymbolFlag( mpImplFont->meCharSet == RTL_TEXTENCODING_SYMBOL ); } |