On 07/08/12 15:38, János Uray wrote:
http://wiki.services.openoffice.org/wiki/Writer/Code_Conventions#Vetoed_Conventions
says 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).
yes, a lot of these things could be improved by replacing dynamic_cast
with new virtual functions; there is a lot of ancient code apparently
written by dyed-in-the-wool C/Pascal programmers that had trouble with
object oriented things.
by the way, Armin's aw080 branch over at AOO(i) removes tools/rtti.hxx
completely, though nobody has any idea when the _other_ enormous
refactorings in there will be finished....
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.