Merge "Don't use std::allocator::pointer" into main am: 55af483b78

Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2901505

Change-Id: I110e19f98b191da52c353e979dfa4e00da270d7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2024-01-11 21:55:22 +00:00 committed by Automerger Merge Worker
commit 1e1940d434

View file

@ -28,7 +28,7 @@ namespace vold {
// Allocator that delegates useful work to standard one but zeroes data before deallocating.
class ZeroingAllocator : public std::allocator<char> {
public:
void deallocate(pointer p, size_type n) {
void deallocate(value_type* p, size_type n) {
memset_explicit(p, 0, n);
std::allocator<char>::deallocate(p, n);
}