diff options
Diffstat (limited to 'src/gui/painting/qdatabuffer_p.h')
-rw-r--r-- | src/gui/painting/qdatabuffer_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qdatabuffer_p.h b/src/gui/painting/qdatabuffer_p.h index 181d19da0b..676750b716 100644 --- a/src/gui/painting/qdatabuffer_p.h +++ b/src/gui/painting/qdatabuffer_p.h @@ -116,7 +116,7 @@ public: capacity = 1; while (capacity < size) capacity *= 2; - buffer = (Type*) realloc(buffer, capacity * sizeof(Type)); + buffer = (Type*) realloc(static_cast<void*>(buffer), capacity * sizeof(Type)); Q_CHECK_PTR(buffer); } } @@ -124,7 +124,7 @@ public: inline void shrink(int size) { capacity = size; if (size) { - buffer = (Type*) realloc(buffer, capacity * sizeof(Type)); + buffer = (Type*) realloc(static_cast<void*>(buffer), capacity * sizeof(Type)); Q_CHECK_PTR(buffer); } else { free(buffer); |