summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-01-06 10:45:08 +0200
committerTor Lillqvist <tml@collabora.com>2016-01-06 10:52:43 +0200
commit2b9ec36ed7cb3b77d8a5fde798544cf5a7f9ec3e (patch)
tree6ddaf6eba0ec04be0acfca0ab0b9971fdcbd454e /vcl
parente514a5583103fcfa0f77a0f91a28b800a9915872 (diff)
Bin unnecessary variable
Change-Id: I140785838f2665b735b288d689c873502d1d1cfb
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/gdi/salfont.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx
index 1f83835ceba9..26ade828ad7f 100644
--- a/vcl/win/gdi/salfont.cxx
+++ b/vcl/win/gdi/salfont.cxx
@@ -1817,8 +1817,6 @@ bool WinSalGraphics::AddTempDevFont( PhysicalFontCollection* pFontCollection,
if( !ImplAddTempFont( *GetSalData(), rFontFileURL ) )
return false;
- UINT nPreferredCharSet = DEFAULT_CHARSET;
-
// create matching FontData struct
aDFA.SetSymbolFlag(false); // TODO: how to know it without accessing the font?
aDFA.SetFamilyType(FAMILY_DONTKNOW);
@@ -1837,7 +1835,7 @@ bool WinSalGraphics::AddTempDevFont( PhysicalFontCollection* pFontCollection,
*/
ImplWinFontData* pFontData = new ImplWinFontData( aDFA, 0,
- sal::static_int_cast<BYTE>(nPreferredCharSet),
+ sal::static_int_cast<BYTE>(DEFAULT_CHARSET),
sal::static_int_cast<BYTE>(TMPF_VECTOR|TMPF_TRUETYPE) );
pFontData->SetFontId( reinterpret_cast<sal_IntPtr>(pFontData) );
pFontCollection->Add( pFontData );