Commit edb121ea authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[clang-tidy] Use explicit default for constructor

See https://chromium.googlesource.com/chromium/src/+/HEAD/styleguide/c++/c++-dos-and-donts.md#prefer-to-use.

Bug: v8:10488
Change-Id: Ief62795bbce5f1e531c3f9c245e3c0294d698cbc
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2183272Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67622}
parent 55752da9
......@@ -46,7 +46,7 @@ class PointerWithPayload {
static constexpr uintptr_t kPointerMask = ~kPayloadMask;
public:
PointerWithPayload() {}
PointerWithPayload() = default;
explicit PointerWithPayload(PointerType* pointer)
: pointer_(reinterpret_cast<uintptr_t>(pointer)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment