New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Tue Dec 12 10:17:27 UTC 2023


Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.

2 new defect(s) introduced to LibreOffice found with Coverity Scan.
70 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 2 of 2 defect(s)


** CID 1559173:  Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
/slideshow/source/engine/eventmultiplexer.cxx: 1299 in slideshow::internal::EventMultiplexer::toNormalPoint(const com::sun::star::uno::Reference<com::sun::star::uno::XInterface> &, const basegfx::B2DPoint &)()


________________________________________________________________________________________________________
*** CID 1559173:  Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
/slideshow/source/engine/eventmultiplexer.cxx: 1299 in slideshow::internal::EventMultiplexer::toNormalPoint(const com::sun::star::uno::Reference<com::sun::star::uno::XInterface> &, const basegfx::B2DPoint &)()
1293     }
1294     
1295     basegfx::B2DPoint EventMultiplexer::toNormalPoint(const uno::Reference<uno::XInterface>& xInterface,
1296                                                       const basegfx::B2DPoint& pnt)
1297     {
1298         uno::Reference<presentation::XSlideShowView> xView(xInterface, uno::UNO_QUERY_THROW);
>>>     CID 1559173:  Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
>>>     "xView" is passed-by-value as parameter to "toNormalPoint" when it could be moved instead.
1299         return mpImpl->toNormalPoint(xView, pnt);
1300     }
1301     
1302     } // namespace presentation
1303     

** CID 1559172:  Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
/slideshow/source/engine/eventmultiplexer.cxx: 1292 in slideshow::internal::EventMultiplexer::toMatrixPoint(const com::sun::star::uno::Reference<com::sun::star::uno::XInterface> &, const basegfx::B2DPoint &)()


________________________________________________________________________________________________________
*** CID 1559172:  Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
/slideshow/source/engine/eventmultiplexer.cxx: 1292 in slideshow::internal::EventMultiplexer::toMatrixPoint(const com::sun::star::uno::Reference<com::sun::star::uno::XInterface> &, const basegfx::B2DPoint &)()
1286     }
1287     
1288     basegfx::B2DPoint EventMultiplexer::toMatrixPoint(const uno::Reference<uno::XInterface>& xInterface,
1289                                                       const basegfx::B2DPoint& pnt)
1290     {
1291         uno::Reference<presentation::XSlideShowView> xView(xInterface, uno::UNO_QUERY_THROW);
>>>     CID 1559172:  Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
>>>     "xView" is passed-by-value as parameter to "toMatrixPoint" when it could be moved instead.
1292         return mpImpl->toMatrixPoint(xView, pnt);
1293     }
1294     
1295     basegfx::B2DPoint EventMultiplexer::toNormalPoint(const uno::Reference<uno::XInterface>& xInterface,
1296                                                       const basegfx::B2DPoint& pnt)
1297     {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNnPiSHxWPOELPnIxzXoBNaw-3D9QKo_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJioULrH9AQU2iCiNG402wJeZZcQh1N7xjme43VLYkYPWXasLJzIuYufBdIJVb-2Br1DcvDzgIbfrmRrzkL5s1pfgjXoa-2BUctKvPYa6B-2BpspGJyid-2Fs-2F7Mw3m-2FgJcKFnQCE5JXW-2BPV6b1OT-2BUF9xMepMzUeD-2Bx4kAgQmAJ0dOK7Z54m4-3D



More information about the LibreOffice mailing list