Nerijus Baliunas | 18 Jan 2009 19:24
Picon

wxmotif

Hello,

I'm just trying to build M with wxmotif (svn head) for fun:

/a/M/M/include/gui/wxllist.h: In constructor 'wxLayoutDataObject::wxLayoutDataObject()':
/a/M/M/include/gui/wxllist.h:1324: error: invalid conversion from 'const wchar_t*' to 'Atom'
/a/M/M/include/gui/wxllist.h:1324: error:   initializing argument 1 of 'wxDataFormat::wxDataFormat(Atom)'

Regards,
Nerijus

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
Vadim Zeitlin | 6 Jul 2010 00:33

Re: wxmotif

On Sun, 18 Jan 2009 20:24:41 +0200 Nerijus Baliunas <nerijus <at> users.sourceforge.net> wrote:

NB> I'm just trying to build M with wxmotif (svn head) for fun:
NB> 
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 wchar_t*' to 'Atom'
NB> /a/M/M/include/gui/wxllist.h:1324: error:   initializing argument 1 of 'wxDataFormat::wxDataFormat(Atom)'

 If you're still interested in pursuing this (although I really wonder
why...), you should just remove the _T() at this line, this string doesn't
have to be a Unicode 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
Mahogany-Developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mahogany-developers
Nerijus Baliunas | 13 Jul 2010 18:23
Picon

Re: wxmotif

On Tue, 6 Jul 2010 00:33:11 +0200 Vadim Zeitlin <vz-mahogany <at> zeitlins.org> wrote:

VZ> NB> /a/M/M/include/gui/wxllist.h: In constructor 'wxLayoutDataObject::wxLayoutDataObject()':
VZ> NB> /a/M/M/include/gui/wxllist.h:1324: error: invalid conversion from 'const wchar_t*' to 'Atom'
VZ> NB> /a/M/M/include/gui/wxllist.h:1324: error:   initializing argument 1 of 'wxDataFormat::wxDataFormat(Atom)'
VZ> 
VZ>  If you're still interested in pursuing this (although I really wonder
VZ> why...), you should just remove the _T() at this line, this string doesn't
VZ> have to be a Unicode one.

Then
/a/M/M/include/gui/wxllist.h: In constructor 'wxLayoutDataObject::wxLayoutDataObject()':
/a/M/M/include/gui/wxllist.h:1324: error: invalid conversion from 'const char*' to 'wxDataFormat::NativeFormat'
/a/M/M/include/gui/wxllist.h:1324: error:   initializing argument 1 of 'wxDataFormat::wxDataFormat(wxDataFormat::NativeFormat)'

Regards,
Nerijus

------------------------------------------------------------------------------
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
Vadim Zeitlin | 13 Jul 2010 18:47

Re: wxmotif

On Tue, 13 Jul 2010 19:23:25 +0300 Nerijus Baliunas <nerijus <at> users.sourceforge.net> 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
Mahogany-Developers <at> lists.sourceforge.net
(Continue reading)


Gmane