List Info

Thread: r1004




r1004
country flaguser name
Russian Federation
2008-02-07 01:02:43
Здравствуйте, Psi!

desktoputil.cpp:53: error: conversion from `QByteArray' to
`TCHAR*' is ambiguous
c:/Qt/4.3.2/include/QtCore/../../src/corelib/tools/qbytearra
y.h:359: note: candidates are: QByteArray::operator const
void*() const <near match>
c:/Qt/4.3.2/include/QtCore/../../src/corelib/tools/qbytearra
y.h:323: note:
           QByteArray::operator QNoImplicitBoolCast() const
<near match>
desktoputil.cpp:53: error: conversion of
`QString::toLocal8Bit() const()' from`
QByteArray' to `TCHAR*' is ambiguous
mingw32-make[2]: *** [_objdesktoputil.o] Error 1
mingw32-make[2]: Leaving directory `D:/Psi/svn/trunk/src'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `D:/Psi/svn/trunk/src'
mingw32-make: *** [sub-src-make_default] Error 2

-- 
With best regards, zet.

E-mail..................... shelukhinmail.ru
JabberID................ zetjabber.ru
Homepage ............ http://bombus-im.org/

_______________________________________________
Psi-Devel mailing list
Psi-Devellists.affinix.com
http://lists.affinix.com/listinfo.cgi/psi-devel-affin
ix.com
Re: r1004
user name
2008-02-07 02:23:17
To Justin (who made this change):
you shouldn't use TCHAR inside QT_WA. QT_WA is not a
conditional 
compilation macro - both versions are compiled and the right
one is 
choosen on runtime. So assuming that QT_WA( /* if we're,
here TCHAR is 
WCHAR */, /* if we're here, TCHAR is CHAR */) is wrong. I
used to think 
it's this way some time ago, but then I run into a similar
problem and I 
checked how this is done.
Unfortunately I cannot make a commit right now, I'm at work
and don't 
have dev env.

-- 
Maciek
  xmpp:machekkuuaznia.net
_______________________________________________
Psi-Devel mailing list
Psi-Devellists.affinix.com
http://lists.affinix.com/listinfo.cgi/psi-devel-affin
ix.com

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )