[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: kdemultimedia/noatun/modules/metatag
From:       Luis Pedro Coelho <luis_pedro () netcabo ! pt>
Date:       2003-05-11 12:41:08
[Download RAW message or body]

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

Le Dimanche 11 Mai 2003 14:29, Neil Stevens a écrit :

There is no (int,int,int ...) constructor, but three of them work with 
(0,0,false...) if you assume 	that there is a const char* -> QString 
conversion (no QT_CAST_ASCII defined).

> KDialogBase( QWidget *parent=0, const char *name=0, bool modal=true,

0 -> QWidget*
0 -> const char*	
false -> bool 

> KDialogBase( int dialogFace, const QString &caption, int buttonMask,

0 -> int
0 -> const char* -> const QString&
false -> int

> KDialogBase( int dialogFace, const QString &caption, QWidget *parent=0

0 -> int
0 -> const char* -> const QString&
false -> QWidget*

Actually, I think the compiler should choose the first one since there is only 
two automatic conversions, while the others need longer chains with a 
user-defined conversion, but  I am not really sure.

Anyway, disambiguating is probably best. 

Regards,
- -- 
Luis Pedro Coelho

"Technology does not always equal progress."
Douglas Coupland
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+vkTlGpBAvyRwXdgRAqplAJ9LcqHOsqqGq7rQ99Jzo0h1UHGJ+QCcDeKj
3+x4215/GdaV6fDVUZZJmXg=
=E4RU
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic