diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-01-11 21:22:05 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-01-11 21:22:05 +0000 |
commit | 55af483b7893e693088041c8fdc53e2e4aa83c39 (patch) | |
tree | 1a53537e9f291aa8cc28d1f1a8e67941610d146c | |
parent | 7730a4944f435f5983f08c56ff4c5c92c9335b52 (diff) | |
parent | 786b3952663cd0759b86cbf540f58c596a9d32b6 (diff) | |
download | vold-55af483b7893e693088041c8fdc53e2e4aa83c39.tar.gz |
Merge "Don't use std::allocator::pointer" into main
-rw-r--r-- | KeyBuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/KeyBuffer.h b/KeyBuffer.h index 3275255d..619cb275 100644 --- a/KeyBuffer.h +++ b/KeyBuffer.h @@ -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); } |