Kaydet (Commit) 574c4373 authored tarafından Caolán McNamara's avatar Caolán McNamara

pvs-studio: reference becomes invalid when temporary object destroyed

Change-Id: Ibe39738e1a607e3bca273fc03f0f3232024254bc
Reviewed-on: https://gerrit.libreoffice.org/62093
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 6e15a3e2
......@@ -624,15 +624,15 @@ namespace dxcanvas
// Setup an ImageAttributes with an alpha-modulating
// color matrix.
const rendering::ARGBColor& rARGBColor(
rendering::ARGBColor aARGBColor(
mpDevice->getDeviceColorSpace()->convertToARGB(renderState.DeviceColor)[0]);
Gdiplus::ImageAttributes aImgAttr;
tools::setModulateImageAttributes( aImgAttr,
rARGBColor.Red,
rARGBColor.Green,
rARGBColor.Blue,
rARGBColor.Alpha );
aARGBColor.Red,
aARGBColor.Green,
aARGBColor.Blue,
aARGBColor.Alpha );
ENSURE_OR_THROW(
Gdiplus::Ok == pGraphics->DrawImage( pBitmap.get(),
......
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