https://bugs.kde.org/show_bug.cgi?id=345765

--- Comment #11 from RJVB <rjvber...@gmail.com> ---
I don't think that it's a normal "C" cast (which is what I should have
written). A cast that "returns" a NULL pointer when casting a variable that's
not NULL is not a normal cast in my book.

The times I tried to follow what's going on with this kind of cast, I got the
impression that

Okular::ViewerInterface *viFace = dynamic_cast<Okular::ViewerInterface*>(part);

is comparable to

Okular::ViewerInterface *viFace = new
Okular::ViewerInterface((Okular::ViewerInterface*)part);

except that somehow you don't have to delete the result when you're done with
it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel

Reply via email to