From kde-commits Fri Feb 11 23:14:00 2005 From: Albert Astals Cid Date: Fri, 11 Feb 2005 23:14:00 +0000 To: kde-commits Subject: Re: kdegraphics/kpdf/core Message-Id: <200502120014.00921.astals11 () terra ! es> X-MARC-Message: https://marc.info/?l=kde-commits&m=110816365518349 Hi Dirk, thanks for the fix, but in the future could you be a bit more specific like "fix compile with gcc-foo" or "fix compile with that options" or something along the lines. I mean it was compiling here. Albert A Divendres 11 Febrer 2005 23:29, Dirk Mueller va escriure: > CVS commit by mueller: > > fix compile > > > M +4 -4 page.cpp 1.20 > > > --- kdegraphics/kpdf/core/page.cpp #1.19:1.20 > @@ -111,5 +111,5 @@ NormalizedRect * KPDFPage::findText( con > const QChar * str = text.unicode(); > int len = text.length(); > - Unicode u[ len ]; > + QMemArray u(len); > for (int i = 0; i < len; ++i) > u[i] = str[i].unicode(); > @@ -131,10 +131,10 @@ NormalizedRect * KPDFPage::findText( con > { > if ( dir == FromTop ) > - found = m_text->findText( u, len, gTrue, gTrue, gFalse, > gFalse, &sLeft, &sTop, &sRight, &sBottom ); + found = > m_text->findText( const_cast(static_cast(u)), > len, gTrue, gTrue, gFalse, gFalse, &sLeft, &sTop, &sRight, &sBottom ); else > if ( dir == NextMatch ) > - found = m_text->findText( u, len, gFalse, gTrue, gTrue, > gFalse, &sLeft, &sTop, &sRight, &sBottom ); + found = > m_text->findText( const_cast(static_cast(u)), > len, gFalse, gTrue, gTrue, gFalse, &sLeft, &sTop, &sRight, &sBottom ); else > if ( dir == PrevMatch ) > // FIXME: this doesn't work as expected (luckily backward > search isn't yet used) - found = m_text->findText( u, len, > gTrue, gFalse, gFalse, gTrue, &sLeft, &sTop, &sRight, &sBottom ); + > found = m_text->findText( const_cast(static_cast Unicode*>(u)), len, gTrue, gFalse, gFalse, gTrue, &sLeft, &sTop, &sRight, > &sBottom ); > > // if not found (even in case unsensitive search), terminate