[Libreoffice-commits] core.git: vcl/generic
Stephan Bergmann
sbergman at redhat.com
Tue Jan 5 05:18:06 PST 2016
vcl/generic/print/genpspgraphics.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 09442a04624cd09f7c693cd7e64e0259f17b2d6b
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Jan 5 14:17:38 2016 +0100
Remove unnecessary cast
Change-Id: I5b9bb5231d65beb0ac5c98973a33f1cb369f0649
diff --git a/vcl/generic/print/genpspgraphics.cxx b/vcl/generic/print/genpspgraphics.cxx
index 096536a..a6e1e83 100644
--- a/vcl/generic/print/genpspgraphics.cxx
+++ b/vcl/generic/print/genpspgraphics.cxx
@@ -921,7 +921,7 @@ void GenPspGraphics::GetFontAttributes( ImplFontAttributes *pFontAttributes, int
if (rMgr.getFontInfo (m_pPrinterGfx->GetFontID(), aInfo))
{
ImplFontAttributes aDFA = Info2FontAttributes( aInfo );
- static_cast<ImplFontAttributes&>(*pFontAttributes) = aDFA;
+ *pFontAttributes = aDFA;
pFontAttributes->SetBuiltInFontFlag( aDFA.IsBuiltInFont() );
pFontAttributes->SetScalableFlag( true );
pFontAttributes->SetTrueTypeFlag( false ); // FIXME, needed?
More information about the Libreoffice-commits
mailing list