Kaydet (Commit) 8f31bb9d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:redundantfcast (clang-cl)

Change-Id: I814e7b61ebbef1a0bbd38a5e70beeb7f99a0cfa1
Reviewed-on: https://gerrit.libreoffice.org/67146
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 2b012f9d
......@@ -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 )
......
......@@ -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)
......
......@@ -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)
......
......@@ -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;
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment