vcl/source/gdi/impglyphitem.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit f937e06c9b33e476039ab9682cffb5a9a645825e
Author:     Luboš Luňák <[email protected]>
AuthorDate: Fri May 20 09:01:24 2022 +0200
Commit:     Luboš Luňák <[email protected]>
CommitDate: Fri May 20 13:50:31 2022 +0200

    remove useless variable
    
    Change-Id: Ie6e95a4d089f3adb65e4f79ae0389eecb220488a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134658
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <[email protected]>

diff --git a/vcl/source/gdi/impglyphitem.cxx b/vcl/source/gdi/impglyphitem.cxx
index 6ab5663ddef6..3711d3298039 100644
--- a/vcl/source/gdi/impglyphitem.cxx
+++ b/vcl/source/gdi/impglyphitem.cxx
@@ -318,7 +318,6 @@ SalLayoutGlyphsCache::GetLayoutGlyphs(VclPtr<const 
OutputDevice> outputDevice, c
         // So in that case this is a cached failure.
         return nullptr;
     }
-    const SalLayoutFlags glyphItemsOnlyLayout = SalLayoutFlags::GlyphItemsOnly;
     bool resetLastSubstringKey = true;
     const sal_Unicode nbSpace = 0xa0; // non-breaking space
     if (nIndex != 0 || nLen != text.getLength())
@@ -392,7 +391,7 @@ SalLayoutGlyphsCache::GetLayoutGlyphs(VclPtr<const 
OutputDevice> outputDevice, c
                 // to make sure corner cases are handled well (see 
SalLayoutGlyphsImpl::cloneCharRange()).
                 std::unique_ptr<SalLayout> layout
                     = outputDevice->ImplLayout(text, nIndex, nLen, Point(0, 
0), nLogicWidth, {},
-                                               glyphItemsOnlyLayout, 
layoutCache);
+                                               SalLayoutFlags::GlyphItemsOnly, 
layoutCache);
                 assert(layout);
                 checkGlyphsEqual(mLastTemporaryGlyphs, layout->GetGlyphs());
 #endif
@@ -415,8 +414,9 @@ SalLayoutGlyphsCache::GetLayoutGlyphs(VclPtr<const 
OutputDevice> outputDevice, c
         tmpLayoutCache = vcl::text::TextLayoutCache::Create(text);
         layoutCache = tmpLayoutCache.get();
     }
-    std::unique_ptr<SalLayout> layout = outputDevice->ImplLayout(
-        text, nIndex, nLen, Point(0, 0), nLogicWidth, {}, 
glyphItemsOnlyLayout, layoutCache);
+    std::unique_ptr<SalLayout> layout
+        = outputDevice->ImplLayout(text, nIndex, nLen, Point(0, 0), 
nLogicWidth, {},
+                                   SalLayoutFlags::GlyphItemsOnly, 
layoutCache);
     if (layout)
     {
         SalLayoutGlyphs glyphs = layout->GetGlyphs();

Reply via email to