[Libreoffice-commits] core.git: vcl/skia

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 10 19:15:35 UTC 2020


 vcl/skia/win/gdiimpl.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit ad65fa305cc73ae0bbed44e140c11ad5638ce440
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Fri Apr 10 17:09:30 2020 +0200
Commit:     Luboš Luňák <l.lunak at collabora.com>
CommitDate: Fri Apr 10 21:15:01 2020 +0200

    fix lame local variable mistake
    
    Change-Id: I330f8393edf61b37ae12a372e6f43ff01e204395
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92047
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lunak at collabora.com>

diff --git a/vcl/skia/win/gdiimpl.cxx b/vcl/skia/win/gdiimpl.cxx
index 7bf150a6ccee..d197f1bc2b38 100644
--- a/vcl/skia/win/gdiimpl.cxx
+++ b/vcl/skia/win/gdiimpl.cxx
@@ -137,15 +137,14 @@ sk_sp<SkTypeface> WinSkiaSalGraphicsImpl::createDirectWriteTypeface(const LOGFON
 {
     if (!dwriteDone)
     {
-        IDWriteFactory* factory;
         if (SUCCEEDED(
                 CHECKHR(DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory),
-                                            reinterpret_cast<IUnknown**>(&factory)))))
+                                            reinterpret_cast<IUnknown**>(&dwriteFactory)))))
         {
-            if (SUCCEEDED(CHECKHR(factory->GetGdiInterop(&dwriteGdiInterop))))
+            if (SUCCEEDED(CHECKHR(dwriteFactory->GetGdiInterop(&dwriteGdiInterop))))
                 dwriteFontMgr = SkFontMgr_New_DirectWrite(dwriteFactory);
             else
-                factory->Release();
+                dwriteFactory->Release();
         }
         dwriteDone = true;
     }


More information about the Libreoffice-commits mailing list