diff options
author | Brotcrunsher <Brotcrunsher@hotmail.de> | 2023-06-04 18:34:48 +0200 |
---|---|---|
committer | Brotcrunsher <Brotcrunsher@hotmail.de> | 2023-06-20 10:23:08 +0200 |
commit | bdea2bb1147bbd22f8b4fa406262470f9d084215 (patch) | |
tree | 67b9656e7055dd9c0cc0954d53a2af5174c891b5 /src/support | |
parent | 8f402710371a40c5777dc3f9c4ba6ca8505a2f90 (diff) |
scripted-diff: Following the C++ Standard rules for identifiers with _.
Any identifier starting with two _, or one _ followed by a capital letter is reserved for the compiler and thus must not be used. See: https://stackoverflow.com/a/228797/7130273
-BEGIN VERIFY SCRIPT-
s() { git grep -l "$1" src | xargs sed -i "s/$1/$2/g"; }
s '__pushKV' 'pushKVEnd'
s '_EraseTx' 'EraseTxNoLock'
s '_Other' 'Other'
-END VERIFY SCRIPT-
Diffstat (limited to 'src/support')
-rw-r--r-- | src/support/allocators/secure.h | 4 | ||||
-rw-r--r-- | src/support/allocators/zeroafterfree.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/support/allocators/secure.h b/src/support/allocators/secure.h index a0918bf463..b2076bea07 100644 --- a/src/support/allocators/secure.h +++ b/src/support/allocators/secure.h @@ -32,9 +32,9 @@ struct secure_allocator : public std::allocator<T> { { } ~secure_allocator() noexcept {} - template <typename _Other> + template <typename Other> struct rebind { - typedef secure_allocator<_Other> other; + typedef secure_allocator<Other> other; }; T* allocate(std::size_t n, const void* hint = nullptr) diff --git a/src/support/allocators/zeroafterfree.h b/src/support/allocators/zeroafterfree.h index 795eea3bc0..2dc644c242 100644 --- a/src/support/allocators/zeroafterfree.h +++ b/src/support/allocators/zeroafterfree.h @@ -27,9 +27,9 @@ struct zero_after_free_allocator : public std::allocator<T> { { } ~zero_after_free_allocator() noexcept {} - template <typename _Other> + template <typename Other> struct rebind { - typedef zero_after_free_allocator<_Other> other; + typedef zero_after_free_allocator<Other> other; }; void deallocate(T* p, std::size_t n) |