From 09754d218a9c8f19f9a8f9bf920bc52064163d7a Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Tue, 2 Sep 2014 00:50:21 +0300 Subject: QTextEngine: remove unnecessary assignment in LayoutData::reallocate() Change-Id: I82e34d5525354fc20ca9aba6df3767e3fee51bf8 Reviewed-by: Lars Knoll --- src/gui/text/qtextengine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/text') diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp index 17bc4fde98..2db8b3fc1b 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -2385,8 +2385,7 @@ bool QTextEngine::LayoutData::reallocate(int totalGlyphs) return false; } - void **newMem = memory; - newMem = (void **)::realloc(memory_on_stack ? 0 : memory, newAllocated*sizeof(void *)); + void **newMem = (void **)::realloc(memory_on_stack ? 0 : memory, newAllocated*sizeof(void *)); if (!newMem) { layoutState = LayoutFailed; return false; -- cgit v1.2.3