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

Reply via email to