5#include "qplatformdefs.h"
25 void *actualptr = oldptr ?
static_cast<void **
>(oldptr)[-1] :
nullptr;
28 void **newptr =
static_cast<void **
>(realloc(actualptr, newsize +
sizeof(
void *)));
31 if (newptr == actualptr) {
48 qptrdiff oldoffset = oldptr ?
static_cast<char *
>(oldptr) -
static_cast<char *
>(actualptr) : 0;
49 void *real = realloc(actualptr, newsize +
alignment);
55 void **faked_ptr =
reinterpret_cast<void **
>(faked);
58 qptrdiff newoffset =
reinterpret_cast<char *
>(faked_ptr) -
static_cast<char *
>(real);
59 if (oldoffset != newoffset)
60 memmove(faked_ptr,
static_cast<char *
>(real) + oldoffset,
qMin(
oldsize, newsize));
75 void **ptr2 =
static_cast<void **
>(
ptr);
Combined button and popup list for selecting options.
void * qReallocAligned(void *oldptr, size_t newsize, size_t oldsize, size_t alignment)
void qFreeAligned(void *ptr)
QT_BEGIN_NAMESPACE void * qMallocAligned(size_t size, size_t alignment)
static ControlElement< T > * ptr(QWidget *widget)
constexpr const T & qMin(const T &a, const T &b)
GLenum GLuint GLintptr GLsizeiptr size
[1]