[Libreoffice-commits] core.git: dtrans/source vcl/inc vcl/win

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 30 16:44:34 UTC 2019


 dtrans/source/win32/dtobj/FetcList.cxx |    2 +-
 vcl/inc/win/winlayout.hxx              |    2 +-
 vcl/win/gdi/gdiimpl.cxx                |    2 +-
 vcl/win/gdi/winlayout.cxx              |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 8f31bb9d3facfc34f42b89ef7b1e076ef158928e
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Jan 30 14:42:15 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jan 30 17:44:03 2019 +0100

    loplugin:redundantfcast (clang-cl)
    
    Change-Id: I814e7b61ebbef1a0bbd38a5e70beeb7f99a0cfa1
    Reviewed-on: https://gerrit.libreoffice.org/67146
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/dtrans/source/win32/dtobj/FetcList.cxx b/dtrans/source/win32/dtobj/FetcList.cxx
index 36bb5bd74eee..0a262b0677fb 100644
--- a/dtrans/source/win32/dtobj/FetcList.cxx
+++ b/dtrans/source/win32/dtobj/FetcList.cxx
@@ -48,7 +48,7 @@ CFormatEtcContainer::CFormatEtcContainer( )
 
 void CFormatEtcContainer::addFormatEtc( const CFormatEtc& fetc )
 {
-    m_FormatMap.push_back( CFormatEtc( fetc ) );
+    m_FormatMap.push_back( fetc );
 }
 
 void CFormatEtcContainer::removeFormatEtc( const CFormatEtc& fetc )
diff --git a/vcl/inc/win/winlayout.hxx b/vcl/inc/win/winlayout.hxx
index 042e30e9f299..279c155b0a97 100644
--- a/vcl/inc/win/winlayout.hxx
+++ b/vcl/inc/win/winlayout.hxx
@@ -127,7 +127,7 @@ public:
     void PutDrawElementInCache(const OpenGLGlyphDrawElement& rElement, int nGlyphIndex)
     {
         assert(!IsGlyphCached(nGlyphIndex));
-        maOpenGLTextureCache[nGlyphIndex] = OpenGLGlyphDrawElement(rElement);
+        maOpenGLTextureCache[nGlyphIndex] = rElement;
     }
 
     OpenGLGlyphDrawElement& GetDrawElement(int nGlyphIndex)
diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx
index 1f654ebbee77..432d5add15a5 100644
--- a/vcl/win/gdi/gdiimpl.cxx
+++ b/vcl/win/gdi/gdiimpl.cxx
@@ -1088,7 +1088,7 @@ bool WinSalGraphicsImpl::setClipRegion( const vcl::Region& i_rClip )
             {
                 const basegfx::B2DRange aRangeS(aPolyPolygon.getB2DRange());
                 const basegfx::B2DRange aRangeT(aRangeS.getMinimum(), aRangeS.getMaximum() + basegfx::B2DTuple(1.0, 1.0));
-                aExpand = basegfx::B2DHomMatrix(basegfx::utils::createSourceRangeTargetRangeTransform(aRangeS, aRangeT));
+                aExpand = basegfx::utils::createSourceRangeTargetRangeTransform(aRangeS, aRangeT);
             }
 
             for(auto const& rPolygon : aPolyPolygon)
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 4ae496f2d5f4..24dbcb1b9815 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -115,7 +115,7 @@ bool WinFontInstance::CacheGlyphToAtlas(HDC hDC, HFONT hFont, int nGlyphIndex, S
     // take anti-aliasing into consideration. Let's hope that leaving
     // "extra" space between glyphs will help.
     std::vector<float> aGlyphAdv(1);   // offsets between glyphs
-    std::vector<DWRITE_GLYPH_OFFSET> aGlyphOffset(1, DWRITE_GLYPH_OFFSET{0.0f, 0.0f});
+    std::vector<DWRITE_GLYPH_OFFSET> aGlyphOffset(1, {0.0f, 0.0f});
     std::vector<int> aEnds(1); // end of each glyph box
     float totWidth = 0;
     {


More information about the Libreoffice-commits mailing list