Re: wxmotif
Vadim Zeitlin <[email protected]> Tue, 13 Jul 2010 18:47:20 +0200
| Newsgroups | gmane.mail.mahogany.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 13 Jul 2010 19:23:25 +0300 Nerijus Baliunas <[email protected]> wrote: NB> /a/M/M/include/gui/wxllist.h: In constructor 'wxLayoutDataObject::wxLayoutDataObject()': NB> /a/M/M/include/gui/wxllist.h:1324: error: invalid conversion from 'const char*' to 'wxDataFormat::NativeFormat' NB> /a/M/M/include/gui/wxllist.h:1324: error: initializing argument 1 of 'wxDataFormat::wxDataFormat(wxDataFormat::NativeFormat)' Just make the conversion explicit, either by writing SetFormat(wxDataFormat("xxx")); or SetFormat(wxString("xxx")); This is needed because wxDataFormat is constructible from wxString and wxString is constructible from char* but the compiler won't use 2 implicit conversions automatically, just one. Regards, VZ ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Mahogany-Developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mahogany-developers
signature.asc
(application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iEYEABECAAYFAkw8mJgACgkQBupB3k9sHoZjAACfU2nBVJUF6BXeEoU4Gh1ix6Gg X3AAoKVU01KsEbmkwD1tMvvcLZCQECRf =y/Yx -----END PGP SIGNATURE-----