diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2023-05-17 07:57:56 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 09:23:46 +0000 |
commit | fa994d0377ddc7a10b760a5bde75239d76b7f1e7 (patch) | |
tree | 5fadecff489ed659f8ba55c525523d1ab8308710 /src/mongo/util/decoration_container.h | |
parent | ef7b01c09dad0dd01b1a4ffecfef623de2b58cd9 (diff) | |
download | mongo-fa994d0377ddc7a10b760a5bde75239d76b7f1e7.tar.gz |
SERVER-76788 elide trivial Decoration constructors
Diffstat (limited to 'src/mongo/util/decoration_container.h')
-rw-r--r-- | src/mongo/util/decoration_container.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/decoration_container.h b/src/mongo/util/decoration_container.h index 4b2f7bf0619..67a76730a16 100644 --- a/src/mongo/util/decoration_container.h +++ b/src/mongo/util/decoration_container.h @@ -97,7 +97,7 @@ public: explicit DecorationContainer(Decorable<DecoratedType>* const decorated, const DecorationRegistry<DecoratedType>* const registry) : _registry(registry), - _decorationData(new unsigned char[registry->getDecorationBufferSizeBytes()]) { + _decorationData(new unsigned char[registry->getDecorationBufferSizeBytes()]{}) { // Because the decorations live in the externally allocated storage buffer at // `_decorationData`, there needs to be a way to get back from a known location within this // buffer to the type which owns those decorations. We place a pointer to ourselves, a |