remove unused optional param to SkAutoMalloc

git-svn-id: http://skia.googlecode.com/svn/trunk@2491 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-10-18 18:32:46 +00:00
parent 86b49d2ef3
commit 3ab4195445

View File

@ -408,9 +408,8 @@ private:
*/
class SkAutoMalloc : public SkNoncopyable {
public:
explicit SkAutoMalloc(size_t size = 0,
unsigned flags = SK_MALLOC_THROW | SK_MALLOC_TEMP) {
fPtr = size ? sk_malloc_flags(size, flags) : NULL;
explicit SkAutoMalloc(size_t size = 0) {
fPtr = size ? sk_malloc_throw(size) : NULL;
fSize = size;
}
@ -421,11 +420,10 @@ public:
/**
* Reallocates the block to a new size. The ptr may or may not change.
*/
void* reset(size_t size,
unsigned flags = (SK_MALLOC_THROW | SK_MALLOC_TEMP)) {
void* reset(size_t size) {
if (size != fSize) {
sk_free(fPtr);
fPtr = size ? sk_malloc_flags(size, flags) : NULL;
fPtr = size ? sk_malloc_throw(size) : NULL;
fSize = size;
}
return fPtr;