QTextEngine: remove unnecessary assignment in LayoutData::reallocate()
Change-Id: I82e34d5525354fc20ca9aba6df3767e3fee51bf8 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
de068472f1
commit
09754d218a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user