Don't realloc user-provided buffer
authorJoão Abecasis <joao.abecasis@nokia.com>
Mon, 2 May 2011 11:46:40 +0000 (13:46 +0200)
committerOlivier Goffart <olivier.goffart@nokia.com>
Tue, 10 May 2011 10:54:55 +0000 (12:54 +0200)
commite6e6e4c1695822776957af66413450aaccc0ff65
treee9f00a9ef271890c0adf931ea639aa107db28ce4
parentbc88f528dcfe3b2b2369530d76fee2994c2887f9
Don't realloc user-provided buffer

When QTextBoundaryFinder doesn't own the buffer, don't realloc it and
get a new one instead.

Reviewed-by: Ritt Konstantin
(cherry picked from commit 320f172c851a4720299297c8b3b757eb1202c568)
src/corelib/tools/qtextboundaryfinder.cpp