From koffice Tue May 18 14:50:21 1999 From: Thomas Capricelli Date: Tue, 18 May 1999 14:50:21 +0000 To: koffice Subject: Re: Kword ambiguous overload / Makefile generation with qt X-MARC-Message: https://marc.info/?l=koffice&m=92703863119083 On Tue, 18 May 1999, Harri Porten wrote: >Thomas Capricelli wrote: >> >> Am I the only one having this problem ? >> >> char.cc: In function `class ostream & operator <<(class ostream &, class KWString &)': >> char.cc:931: ambiguous overload for `QChar & != int' > >As Reggie said: your Qt and KWord version doesn't seem to fit. They fit. anyway, this resolve the problem (quite abruptly, I don't garanty anything) : --- char.cc Tue May 18 16:50:03 1999 +++ char.cc.orzel Tue May 18 16:49:54 1999 @@ -288,7 +288,7 @@ for ( unsigned int i = _pos; i <= _len + _pos; i++ ) { if ( static_cast( i ) > static_cast( size() - 1 ) ) break; - if ( _data_[ i ].c != 0 ) + if ( _data_[ i ].c != (char)0 ) str += _data_[ i ].c; else str += c; @@ -928,7 +928,7 @@ for ( unsigned int i = 0; i < _string.size(); i++ ) { - if ( _string.data()[ i ].c != 0 ) + if ( _string.data()[ i ].c != (char)0 ) out << _string.data()[ i ].c; else out << c; Thomas -- Thomas Capricelli http://www.ecoledoc.lip6.fr/~capricel/