New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Sat Aug 2 06:02:32 UTC 2025
Hi,
Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.
1 new defect(s) introduced to LibreOffice found with Coverity Scan.
32 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1660859: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
_____________________________________________________________________________________________
*** CID 1660859: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
/svx/source/gallery2/galobj.cxx: 130 in SgaObject::CreateThumb(const Graphic &)()
124
125 aBmp.Scale(aBmpSize, BmpScaleFlag::BestQuality);
126 }
127 }
128
129 // take over Bitmap
>>> CID 1660859: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
>>> "aBmp" is copied in call to copy assignment for class "Bitmap", when it could be moved instead.
130 aThumbBmp = aBmp;
131
132 if( ( aBmpSize.Width() <= S_THUMB ) && ( aBmpSize.Height() <= S_THUMB ) )
133 {
134 aThumbBmp.Convert( BmpConversion::N8BitColors );
135 bRet = true;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libreoffice?tab=overview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250802/a11015b7/attachment.htm>
More information about the LibreOffice
mailing list