sw/source/core/frmedt/fecopy.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 23275beec1eabe3f3c3d1655b806811862df8f94 Author: Norbert Thiebaud <nthieb...@gmail.com> Date: Fri Jul 4 16:31:43 2014 +0200 coverity#1213073-5 Unchecked dynamic cast Change-Id: I166fdb236f5f70ae854d14b00860a6ef2b814b32 diff --git a/sw/source/core/frmedt/fecopy.cxx b/sw/source/core/frmedt/fecopy.cxx index c980082..be8058f 100644 --- a/sw/source/core/frmedt/fecopy.cxx +++ b/sw/source/core/frmedt/fecopy.cxx @@ -723,10 +723,10 @@ bool SwFEShell::Paste( SwDoc* pClpDoc, bool bIncludingPageFrames ) // cursor of the ring points to identical document positions. Then // we should avoid double insertion of text portions... while( nCursorCount > 1 && *pCurrCrsr->GetPoint() == - *(dynamic_cast<SwPaM*>(pCurrCrsr->GetPrev())->GetPoint()) ) + *(static_cast<SwPaM*>(pCurrCrsr->GetPrev())->GetPoint()) ) { --nCursorCount; - pCurrCrsr = dynamic_cast<SwPaM*>(pCurrCrsr->GetNext()); + pCurrCrsr = static_cast<SwPaM*>(pCurrCrsr->GetNext()); pStartCursor = pCurrCrsr; } SwPosition aStartPos( *pStartCursor->GetPoint() ); @@ -758,7 +758,7 @@ bool SwFEShell::Paste( SwDoc* pClpDoc, bool bIncludingPageFrames ) } else // as long as we find more insert positions in the cursor ring { // we'll take them - pCurrCrsr = dynamic_cast<SwPaM*>(pCurrCrsr->GetNext()); + pCurrCrsr = static_cast<SwPaM*>(pCurrCrsr->GetNext()); aInsertPos = *pCurrCrsr->GetPoint(); --nCursorCount; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits