From 6711ae66e31c9d3c5e2c18bb5519a6ca0fa93bd8 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Mon, 22 Apr 2002 14:25:55 +0000 Subject: #i3980#: add default argument to MyAllocator::allocate() --- sal/rtl/source/bootstrap.cxx | 6 +++--- sal/rtl/source/unload.cxx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sal') diff --git a/sal/rtl/source/bootstrap.cxx b/sal/rtl/source/bootstrap.cxx index d2e9e62bb192..8796b5051165 100644 --- a/sal/rtl/source/bootstrap.cxx +++ b/sal/rtl/source/bootstrap.cxx @@ -2,9 +2,9 @@ * * $RCSfile: bootstrap.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: mhu $ $Date: 2002-04-21 13:38:41 $ + * last change: $Author: hr $ $Date: 2002-04-22 15:25:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -150,7 +150,7 @@ struct MyAllocator return size_type(-1)/sizeof(T); } - pointer allocate (size_type n) + pointer allocate (size_type n, void const * = 0) { n *= sizeof(T); return (pointer)rtl_allocateMemory(sal_uInt32(n)); diff --git a/sal/rtl/source/unload.cxx b/sal/rtl/source/unload.cxx index 783233bcc239..92c51a6fee8d 100644 --- a/sal/rtl/source/unload.cxx +++ b/sal/rtl/source/unload.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unload.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: mhu $ $Date: 2002-04-21 13:38:41 $ + * last change: $Author: hr $ $Date: 2002-04-22 15:25:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -129,7 +129,7 @@ struct MyAllocator return size_type(-1)/sizeof(T); } - pointer allocate (size_type n) + pointer allocate (size_type n, void const * = 0) { n *= sizeof(T); return (pointer)rtl_allocateMemory(sal_uInt32(n)); -- cgit