summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-01-30 14:42:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-01-30 17:44:03 +0100
commit8f31bb9d3facfc34f42b89ef7b1e076ef158928e (patch)
treecc252f1b0089cc39ab0e3fb37a3a56af7d55d51d
parent2b012f9d52dd0d52c7e1f3f1521ae3f7c7e65113 (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>
-rw-r--r--dtrans/source/win32/dtobj/FetcList.cxx2
-rw-r--r--vcl/inc/win/winlayout.hxx2
-rw-r--r--vcl/win/gdi/gdiimpl.cxx2
-rw-r--r--vcl/win/gdi/winlayout.cxx2
4 files changed, 4 insertions, 4 deletions
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;
{