Qt 4.8
Functions
qlist.cpp File Reference
#include <new>
#include "qlist.h"
#include "qtools_p.h"
#include <string.h>

Go to the source code of this file.

Functions

static int grow (int size)
 

Function Documentation

◆ grow()

static int grow ( int  size)
static

Definition at line 62 of file qlist.cpp.

Referenced by QListData::append(), QGlyphLayout::data(), QListData::detach_grow(), QListData::insert(), QString::operator+=(), QListData::prepend(), and QGLEllipseMaskGenerator::screenRect().

63 {
64  // dear compiler: don't optimize me out.
65  volatile int x = qAllocMore(size * sizeof(void *), QListData::DataHeaderSize) / sizeof(void *);
66  return x;
67 }
int qAllocMore(int alloc, int extra)
Definition: qbytearray.cpp:70