On Tue, 28 Oct 2008 08:49:30 +0100 Abdelrazak Younes <[EMAIL PROTECTED]> wrote:
Why not a const ref instead of a copy? if (cur.inTexted()) { - Paragraph par = cur.paragraph(); + Paragraph const& par = cur.paragraph();
Ooops, so, each paragraph was being wastefully copied every time, and the copy was getting an empty buffer. Of course, I meant to use a ref, but a const ref is even better, as I'm only searching for now.
Thanks, T.