New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Thu Feb 20 12:19:55 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.
3 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 1643103: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
/comphelper/source/misc/lok.cxx: 337 in comphelper::LibreOfficeKit::setAnyInputCallback(const std::function<bool (void *, int)> &, void *, std::function<int ()>)()
________________________________________________________________________________________________________
*** CID 1643103: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
/comphelper/source/misc/lok.cxx: 337 in comphelper::LibreOfficeKit::setAnyInputCallback(const std::function<bool (void *, int)> &, void *, std::function<int ()>)()
331 }
332
333 void setAnyInputCallback(const std::function<bool(void*, int)>& pAnyInputCallback, void* pData, std::function<int()> pMostUrgentPriorityGetter)
334 {
335 g_pAnyInputCallback = pAnyInputCallback;
336 g_pAnyInputCallbackData = pData;
>>> CID 1643103: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
>>> "pMostUrgentPriorityGetter" is copied in a call to copy assignment "operator =", when it could be moved instead.
337 g_pMostUrgentPriorityGetter = pMostUrgentPriorityGetter;
338 }
339
340 bool anyInput()
341 {
342 bool bRet = false;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libreoffice?tab=overview
More information about the LibreOffice
mailing list