New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Wed Sep 7 14:59:20 UTC 2022
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.
8 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 1513730: (USELESS_CALL)
________________________________________________________________________________________________________
*** CID 1513730: (USELESS_CALL)
/sw/source/core/undo/unins.cxx: 731 in SwUndoReplace::Impl::RedoImpl(sw::UndoRedoContext &)()
725
726 rPam.GetPoint()->GetNode().GetTextNode();
727 rPam.SetMark();
728 if( m_bSplitNext )
729 {
730 rPam.GetPoint()->Assign( m_nSttNd + 1 );
>>> CID 1513730: (USELESS_CALL)
>>> Calling "rPam->GetPoint()->GetNode()->GetTextNode()" is only useful for its return value, which is ignored.
731 rPam.GetPoint()->GetNode().GetTextNode();
732 }
733 rPam.GetPoint()->SetContent( m_nSelEnd );
734
735 if( m_pHistory )
736 {
/sw/source/core/undo/unins.cxx: 726 in SwUndoReplace::Impl::RedoImpl(sw::UndoRedoContext &)()
720 {
721 SwDoc & rDoc = rContext.GetDoc();
722 SwCursor & rPam(rContext.GetCursorSupplier().CreateNewShellCursor());
723 rPam.DeleteMark();
724 rPam.GetPoint()->Assign( m_nSttNd, m_nSttCnt );
725
>>> CID 1513730: (USELESS_CALL)
>>> Calling "rPam->GetPoint()->GetNode()->GetTextNode()" is only useful for its return value, which is ignored.
726 rPam.GetPoint()->GetNode().GetTextNode();
727 rPam.SetMark();
728 if( m_bSplitNext )
729 {
730 rPam.GetPoint()->Assign( m_nSttNd + 1 );
731 rPam.GetPoint()->GetNode().GetTextNode();
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DNwPE_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJieIM4tYihIDxkqtaTTXX-2FPD0HX-2F2jLHffrhrTYjVwJZ-2BjP9NSDvaplQGOS8PSttq32d2XHWvOHlH2m07yQQZcOLgiAFiRPCjGPtqKvHfciPSBlGQxJY8zcvDzEji-2FfdY753C71JvKsMcQky-2FHwK-2B-2BTqPK0kd32re51T8v6fVDTLk-3D
More information about the LibreOffice
mailing list