Why do I get this error?

David Faure david at mandrakesoft.com
Sun Nov 10 16:19:48 GMT 2002


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

On Sunday 10 November 2002 17:12, Ian Reinhart Geiser wrote:
> On Sunday 10 November 2002 09:51 am, Tobias Koenig wrote:
> > On Sun, Nov 10, 2002 at 09:25:45AM -0500, Ian Reinhart Geiser wrote:
> > > Greetings
> >
> > Hi Ian,
> >
> > > /usr/local/src/kdelibs/kabc/plugins/ldap/resourceldap.cpp: In method
> > > `bool KABC::ResourceLDAP::open()':
> > > /usr/local/src/kdelibs/kabc/plugins/ldap/resourceldap.cpp:98: cannot
> > > convert `QCString()' from type `QCString' to type `char *'
> >
> > Does an explicit cast like
> >   (char*)mHost.local8Bit()
> > or
> >   (const char*)mHost.local8Bit()
> > help?
> 
> This must be a gccism... the (char *) fails with the same error, but the
> (const char *) only gives a warning of discarded qualifiers...
> 
> What is the lesser of evils?

mHost.local8Bit().data() is.

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9zock72KcVAmwbhARAjiKAJ9cfQzCC+siecXLl8MJ0B6y5bxAcQCeJXwf
gH9V/E1Lw84xt/A5uSYmvGc=
=LYBR
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list