New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Mon Aug 26 06:03:27 UTC 2024


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.
4 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 1618310:  Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
/drawinglayer/source/primitive2d/wrongspellprimitive2d.cxx: 120 in drawinglayer::primitive2d::WrongSpellPrimitive2D::create2DDecomposition(const drawinglayer::geometry::ViewInformation2D &) const()


________________________________________________________________________________________________________
*** CID 1618310:  Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
/drawinglayer/source/primitive2d/wrongspellprimitive2d.cxx: 120 in drawinglayer::primitive2d::WrongSpellPrimitive2D::create2DDecomposition(const drawinglayer::geometry::ViewInformation2D &) const()
114                         aRest.getControlPointB(),
115                         aRest.getEndPoint());
116                 }
117     
118                 // create & return primitive
119                 return new PolygonHairlinePrimitive2D(
>>>     CID 1618310:  Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
>>>     "aWave" is passed-by-value as parameter to "drawinglayer::primitive2d::PolygonHairlinePrimitive2D::PolygonHairlinePrimitive2D(basegfx::B2DPolygon, basegfx::BColor const &)" when it could be moved instead.
120                     aWave,
121                     getColor());
122             }
123     
124             WrongSpellPrimitive2D::WrongSpellPrimitive2D(
125                 basegfx::B2DHomMatrix aTransformation,


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu6VvXBlQRUbS683tC8265rGNPXqJ1ffcoLZCnTuJFQbNcTEkb4XaEQkzovKhJ5DB3c-3DI8f1_A9M4dSy7guk8NP6DcfgslOyvJRzavztVIKj6nRqYjYpWom7SJFyX0y710bz0kUGthpPQP9mfiIdxKmqJGWqTMzo9TxmN9C3r8cfMS2OWUDApLlOzabPwmFhNW5wZ1sxxa7u-2FnOuyIHKunUsN0A80UOq8TFxr8pk0jlAyNaOkPDALkY16oBKQ-2BobWgWeROU03V4ZFvBcVm7o25azfcoodGGRcapjyBsruUN0MZmryFFU-3D



More information about the LibreOffice mailing list