[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL
RJVB
rjvbertin at gmail.com
Fri Apr 3 21:46:55 UTC 2015
https://bugs.kde.org/show_bug.cgi?id=345765
--- Comment #11 from RJVB <rjvbertin at 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.
More information about the Okular-devel
mailing list