Kaydet (Commit) 3507190c authored tarafından Miklos Vajna's avatar Miklos Vajna

coverity#704855 Unchecked dynamic_cast

Change-Id: I25f3d1f53451cd16f6fd05b1084af79fea56b803
üst c39f6602
...@@ -541,7 +541,8 @@ void SwShellCrsr::Show() ...@@ -541,7 +541,8 @@ void SwShellCrsr::Show()
{ {
SwShellCrsr * pTmp = this; SwShellCrsr * pTmp = this;
do { do {
pTmp->SwSelPaintRects::Show(); if (pTmp)
pTmp->SwSelPaintRects::Show();
} while( this != ( pTmp = dynamic_cast<SwShellCrsr*>(pTmp->GetNext()) ) ); } while( this != ( pTmp = dynamic_cast<SwShellCrsr*>(pTmp->GetNext()) ) );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment