New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed Aug 6 20:49:45 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.
50 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 1662031:       Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)


_____________________________________________________________________________________________
*** CID 1662031:         Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
/sfx2/source/control/recentdocsviewitem.cxx: 235             in RecentDocsViewItem::RecentDocsViewItem(sfx2::RecentDocsView &, const rtl::OUString &, const rtl::OUString &, std::basic_string_view<char16_t, std::char_traits<char16_t>>, unsigned short, long, bool, bool)()
229                                       aModule);
230                 aThumbnail = pVirDev->GetBitmap(Point(), aSize);
231             }
232         }
233     
234         maTitle = aTitle;
>>>     CID 1662031:         Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
>>>     "aThumbnail" is copied in call to copy assignment for class "Bitmap", when it could be moved instead.
235         maPreview = aThumbnail;
236     }
237     
238     ::tools::Rectangle RecentDocsViewItem::updateHighlight(bool bVisible, const Point& rPoint)
239     {
240         ::tools::Rectangle aRect(ThumbnailViewItem::updateHighlight(bVisible, rPoint));


________________________________________________________________________________________________________
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/20250806/d7154514/attachment.htm>


More information about the LibreOffice mailing list