[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: Re: Kword ambiguous overload / Makefile generation with qt
From: Thomas Capricelli <capricel () enst ! fr>
Date: 1999-05-18 14:50:21
[Download RAW message or body]
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<int>( i ) > static_cast<int>( 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 <capricel@enst.fr>
http://www.ecoledoc.lip6.fr/~capricel/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic