Commit 1de6157f authored by Adam Klein's avatar Adam Klein Committed by Commit Bot

[api] Make all one-arg constructors `explicit`

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
Change-Id: I5fc71633f2412c2bec3a4363a40da9920a3e25e2
Reviewed-on: https://chromium-review.googlesource.com/922386Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51315}
parent a46ffa0d
...@@ -945,7 +945,7 @@ class V8_EXPORT EscapableHandleScope : public HandleScope { ...@@ -945,7 +945,7 @@ class V8_EXPORT EscapableHandleScope : public HandleScope {
*/ */
class V8_EXPORT SealHandleScope { class V8_EXPORT SealHandleScope {
public: public:
SealHandleScope(Isolate* isolate); explicit SealHandleScope(Isolate* isolate);
~SealHandleScope(); ~SealHandleScope();
SealHandleScope(const SealHandleScope&) = delete; SealHandleScope(const SealHandleScope&) = delete;
...@@ -4147,7 +4147,7 @@ class V8_EXPORT WasmCompiledModule : public Object { ...@@ -4147,7 +4147,7 @@ class V8_EXPORT WasmCompiledModule : public Object {
// to simply WasmModuleObjectBuilder // to simply WasmModuleObjectBuilder
class V8_EXPORT WasmModuleObjectBuilderStreaming final { class V8_EXPORT WasmModuleObjectBuilderStreaming final {
public: public:
WasmModuleObjectBuilderStreaming(Isolate* isolate); explicit WasmModuleObjectBuilderStreaming(Isolate* isolate);
// The buffer passed into OnBytesReceived is owned by the caller. // The buffer passed into OnBytesReceived is owned by the caller.
void OnBytesReceived(const uint8_t*, size_t size); void OnBytesReceived(const uint8_t*, size_t size);
void Finish(); void Finish();
...@@ -8213,7 +8213,7 @@ class V8_EXPORT TryCatch { ...@@ -8213,7 +8213,7 @@ class V8_EXPORT TryCatch {
* all TryCatch blocks should be stack allocated because the memory * all TryCatch blocks should be stack allocated because the memory
* location itself is compared against JavaScript try/catch blocks. * location itself is compared against JavaScript try/catch blocks.
*/ */
TryCatch(Isolate* isolate); explicit TryCatch(Isolate* isolate);
/** /**
* Unregisters and deletes this try/catch block. * Unregisters and deletes this try/catch block.
......
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