New Defects reported by Coverity Scan for LibreOffice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux