if you don't check the result, then don't waste time

on dynamic_cast (CID 3514)

svn path=/trunk/KDE/kdegraphics/okular/; revision=671475
This commit is contained in:
Dirk Mueller 2007-06-04 20:49:48 +00:00
parent 8d80337da4
commit 12b7b0d5d1

View file

@ -62,7 +62,7 @@ QString AnnotationGuiUtils::contents( const Okular::Annotation * ann )
// 2. if Text and InPlace, the inplace text
if ( ann->subType() == Okular::Annotation::AText )
{
const Okular::TextAnnotation * txtann = dynamic_cast< const Okular::TextAnnotation * >( ann );
const Okular::TextAnnotation * txtann = static_cast< const Okular::TextAnnotation * >( ann );
if ( txtann->textType() == Okular::TextAnnotation::InPlace )
{
ret = txtann->inplaceText();