diff options
Diffstat (limited to 'src/testlib/qabstracttestlogger_p.h')
-rw-r--r-- | src/testlib/qabstracttestlogger_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/testlib/qabstracttestlogger_p.h b/src/testlib/qabstracttestlogger_p.h index fcd2feeeb4..585ef0bc7f 100644 --- a/src/testlib/qabstracttestlogger_p.h +++ b/src/testlib/qabstracttestlogger_p.h @@ -55,6 +55,7 @@ #include <qglobal.h> #include <stdio.h> +#include <stdlib.h> QT_BEGIN_NAMESPACE @@ -116,7 +117,7 @@ struct QTestCharBuffer inline ~QTestCharBuffer() { if (buf != staticBuf) - qFree(buf); + free(buf); } inline char *data() @@ -144,10 +145,10 @@ struct QTestCharBuffer char *newBuf = 0; if (buf == staticBuf) { // if we point to our internal buffer, we need to malloc first - newBuf = reinterpret_cast<char *>(qMalloc(newSize)); + newBuf = reinterpret_cast<char *>(malloc(newSize)); } else { // if we already malloc'ed, just realloc - newBuf = reinterpret_cast<char *>(qRealloc(buf, newSize)); + newBuf = reinterpret_cast<char *>(realloc(buf, newSize)); } // if the allocation went wrong (newBuf == 0), we leave the object as is |