diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2002-04-22 14:25:55 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2002-04-22 14:25:55 +0000 |
commit | 6711ae66e31c9d3c5e2c18bb5519a6ca0fa93bd8 (patch) | |
tree | fafe0974cf6406e5fca0aeab608f165e47a1a335 /sal | |
parent | 9f014cdd9c880de053e6595c883a1d30d0cb73be (diff) |
#i3980#: add default argument to MyAllocator::allocate()
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/source/bootstrap.cxx | 6 | ||||
-rw-r--r-- | sal/rtl/source/unload.cxx | 6 |
2 files changed, 6 insertions, 6 deletions
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)); |