[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Some thoughts on kdelibs et al.
From: Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date: 2001-09-26 16:25:25
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 26 September 2001 00:46, Carsten Pfeiffer wrote:
> A few days ago I fixed a line in kwrite
>
> ((QLineEdit*)combobox->children()->first())->selectAll()
<snip>
Apropos casts: Any style guide suggesting to use the advanced xxx_casts
for all clas-related stuff? Ie:
QLineEdit *le dynamic_cast<QLineEdit*>(combobox->children()->first());
Q_ASSERT( le );
le->selectAll();
Instead? And while we're at it: What about using the C++ header files
instead of the C ones?
#include <cassert>
#include <iostream>
- -vs-
#include <assert.h>
#include <iostream.h>
And... Using Q_ASSERT everywhere instead of assert and defining
- -DQT_FATAL_ASSERT in the Makefiles?
Marc
- --
I consider the terrorist attacks on September 11th to be an attack
against America's ideals. If our freedoms erode because of those
attacks, then the terrorists have won.
-- Bruce Schneier, Crypto-Gram 09/2001
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7sgF13oWD+L2/6DgRAkSwAKCVkV9fR8AslJxzkkAME+42/xlgjwCfcoXb
imtEHVSkbO+kPh+Fo1+WnDQ=
=os4+
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic