[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [KDE3] Optimizing



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 8. April 2002 20:28 schrieb Josef Spillner:
> In KDE3.0/kdelibs/kded/kbuildservicegroupfactory.cpp, replace
> 	dynamic_cast<KServiceGroup *>
> with
> 	(KServiceGroup*)
> (OT: I really don't have a clue on that stuff either, any pointer to good
> documentation for dynamic/static/reinterpret/..._cast would be nice.)

I think any good C++ book would do that or try the tutorials at 
www.cplusplus.com:
	http://www.cplusplus.com/doc/tutorial/tut5-4.html
If you want forced casting, then reinterpret_cast<KServiceGroup*> would 
probably be the right thing to do:
"reinterpret_cast treats all pointers exactly as traditional type-casting 
operators do."

But if dynamic_cast does not work, the problem may be in design rather than 
programming.

HS

- -- 
Mein GPG-Key ist auf meiner Homepage verfügbar: http://www.hendrik-sattler.de
        oder über pgp.net

PingoS - Linux-User helfen Schulen: http://www.pingos.schulnetz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8sh36zvr6q9zCwcERAhYFAKCaWq4TlSY3OCSzG7xYZwMT1kF7vACdG4t3
oUFud9GXuacDpvHhDJUPRgw=
=90Wo
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-kde-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: