[PATCH] [PUSHED] IDE: PTR_CAST, ISA -> dynamic_cast

János Uray uray.janos at gmail.com
Tue Aug 7 06:38:28 PDT 2012


http://wiki.services.openoffice.org/wiki/Writer/Code_Conventions#Vetoed_Conventionssays
that C++ RTTI is preferred over <tools/rtti.hxx>.
In my opinion, the best would be not using casts at all (using e.g. virtual
functions instead).

Uray M. János

2012/8/7 Caolán McNamara <caolanm at redhat.com>

> On Tue, 2012-08-07 at 16:00 +0300, Tor Lillqvist wrote:
> > Thanks, puxhed.
>
> Btw, isn't there some issue that dynamic_cast/typeinfo stuff is quite
> slow under msvc or some such ?, i.e. no biggy for the "occasional" cast,
> but a potential problem for say, mass converting the ISA uses in the sw
> layout code.
>
> C.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120807/e503bc32/attachment.html>


More information about the LibreOffice mailing list