diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-01-30 14:42:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-01-30 17:44:03 +0100 |
commit | 8f31bb9d3facfc34f42b89ef7b1e076ef158928e (patch) | |
tree | cc252f1b0089cc39ab0e3fb37a3a56af7d55d51d /vcl/win/gdi | |
parent | 2b012f9d52dd0d52c7e1f3f1521ae3f7c7e65113 (diff) |
loplugin:redundantfcast (clang-cl)
Change-Id: I814e7b61ebbef1a0bbd38a5e70beeb7f99a0cfa1
Reviewed-on: https://gerrit.libreoffice.org/67146
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win/gdi')
-rw-r--r-- | vcl/win/gdi/gdiimpl.cxx | 2 | ||||
-rw-r--r-- | vcl/win/gdi/winlayout.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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; { |