[Okular-devel] [okular] [Bug 345765] [OS X] okular crashing opening PDF from URL

RJVB rjvbertin at gmail.com
Fri Apr 10 16:45:09 UTC 2015


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

--- Comment #18 from RJVB <rjvbertin at gmail.com> ---
(In reply to Albert Astals Cid from comment #16)
> That should be fine, since the class that inherits from
> KParts::ReadWritePart  that the pointer actually contains is a children of
> Okular::ViewerInterface 

So the typeid info isn't correct (I checked with your example: it does indeed
provide the pointer's type, not the allocated class type).

> Can you please try to compile this example with clang (i.e. clang++
> example.cpp) and run it and see what's the output?

A: 0x7fc0e34037f0
B: 0x7fc0e34037f0
C: 0x7fc0e3403800

NB: "B" above is the result of dynamic_cast<C*> and "C" the result of
dynamic_cast<B*> ...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list