From 9f71ff69f2cabd70f89f764b1f9df757c68c0e10 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 8 Aug 2012 14:54:32 +0200 Subject: Rename QContiguousCache allocate and free functions to say "Data" The important change is to use functions not called malloc and free. On some old systems or under some weird circumstances, they might be #defined to something different. More importantly, this allows us to quickly verify whether we're using the stdlib.h functions in our public headers. Change-Id: I66b963ac2bc75d64028c04542e62a929e4b36b19 Reviewed-by: Lars Knoll --- src/corelib/tools/qcontiguouscache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/corelib/tools/qcontiguouscache.cpp') diff --git a/src/corelib/tools/qcontiguouscache.cpp b/src/corelib/tools/qcontiguouscache.cpp index 6a320b82eb..719ca2f4da 100644 --- a/src/corelib/tools/qcontiguouscache.cpp +++ b/src/corelib/tools/qcontiguouscache.cpp @@ -56,12 +56,12 @@ void QContiguousCacheData::dump() const } #endif -QContiguousCacheData *QContiguousCacheData::allocate(int size, int alignment) +QContiguousCacheData *QContiguousCacheData::allocateData(int size, int alignment) { return static_cast(qMallocAligned(size, alignment)); } -void QContiguousCacheData::free(QContiguousCacheData *data) +void QContiguousCacheData::freeData(QContiguousCacheData *data) { qFreeAligned(data); } -- cgit v1.2.3