mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-30 03:32:13 +00:00
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:
parent
8d80337da4
commit
12b7b0d5d1
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue