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
pgpCR0qIKcFJe.pgp
Description: PGP signature
------------------------------------------------------------------------------ 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
