File tree Expand file tree Collapse file tree 11 files changed +11
-18
lines changed Expand file tree Collapse file tree 11 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -408,8 +408,6 @@ void FreeIsolateData(IsolateData* isolate_data) {
408408 delete isolate_data;
409409}
410410
411- InspectorParentHandle::~InspectorParentHandle () {}
412-
413411// Hide the internal handle class from the public API.
414412#if HAVE_INSPECTOR
415413struct InspectorParentHandleImpl : public InspectorParentHandle {
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class BlobDeserializer : public BlobSerializerDeserializer {
3939 public:
4040 explicit BlobDeserializer (bool is_debug_v, std::string_view s)
4141 : BlobSerializerDeserializer(is_debug_v), sink(s) {}
42- ~BlobDeserializer () {}
42+ ~BlobDeserializer () = default ;
4343
4444 size_t read_total = 0 ;
4545 std::string_view sink;
@@ -85,7 +85,7 @@ class BlobSerializer : public BlobSerializerDeserializer {
8585 public:
8686 explicit BlobSerializer (bool is_debug_v)
8787 : BlobSerializerDeserializer(is_debug_v) {}
88- ~BlobSerializer () {}
88+ ~BlobSerializer () = default ;
8989
9090 Impl* impl () { return static_cast <Impl*>(this ); }
9191 const Impl* impl () const { return static_cast <const Impl*>(this ); }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class CleanupQueue : public MemoryRetainer {
1818 public:
1919 typedef void (*Callback)(void *);
2020
21- CleanupQueue () {}
21+ CleanupQueue () = default ;
2222
2323 // Not copyable.
2424 CleanupQueue (const CleanupQueue&) = delete ;
Original file line number Diff line number Diff line change @@ -130,8 +130,6 @@ void ECDH::MemoryInfo(MemoryTracker* tracker) const {
130130 tracker->TrackFieldWithSize (" key" , key_ ? kSizeOf_EC_KEY : 0 );
131131}
132132
133- ECDH::~ECDH () {}
134-
135133void ECDH::New (const FunctionCallbackInfo<Value>& args) {
136134 Environment* env = Environment::GetCurrent (args);
137135
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ int GetOKPCurveFromName(const char* name);
2020
2121class ECDH final : public BaseObject {
2222 public:
23- ~ECDH () override ;
23+ ~ECDH () override = default ;
2424
2525 static void Initialize (Environment* env, v8::Local<v8::Object> target);
2626 static void RegisterExternalReferences (ExternalReferenceRegistry* registry);
Original file line number Diff line number Diff line change @@ -687,7 +687,7 @@ Agent::Agent(Environment* env)
687687 debug_options_ (env->options ()->debug_options()),
688688 host_port_(env->inspector_host_port ()) {}
689689
690- Agent::~Agent () {}
690+ Agent::~Agent () = default ;
691691
692692bool Agent::Start (const std::string& path,
693693 const DebugOptions& options,
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ namespace v8impl {
1010
1111class RefTracker {
1212 public:
13- RefTracker () {}
14- virtual ~RefTracker () {}
13+ RefTracker () = default ;
14+ virtual ~RefTracker () = default ;
1515 virtual void Finalize () {}
1616
1717 typedef RefTracker RefList;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ namespace node {
1616class JSONParser {
1717 public:
1818 JSONParser ();
19- ~JSONParser () {}
19+ ~JSONParser () = default ;
2020 bool Parse (const std::string& content);
2121 std::optional<std::string> GetTopLevelStringField (std::string_view field);
2222 std::optional<bool > GetTopLevelBoolField (std::string_view field);
Original file line number Diff line number Diff line change @@ -1152,9 +1152,6 @@ void TearDownOncePerProcess() {
11521152 }
11531153}
11541154
1155- InitializationResult::~InitializationResult () {}
1156- InitializationResultImpl::~InitializationResultImpl () {}
1157-
11581155ExitCode GenerateAndWriteSnapshotData (const SnapshotData** snapshot_data_ptr,
11591156 const InitializationResultImpl* result) {
11601157 ExitCode exit_code = result->exit_code_enum ();
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ enum Flags : uint32_t {
289289
290290class NODE_EXTERN InitializationResult {
291291 public:
292- virtual ~InitializationResult ();
292+ virtual ~InitializationResult () = default ;
293293
294294 // Returns a suggested process exit code.
295295 virtual int exit_code () const = 0;
@@ -658,7 +658,7 @@ enum Flags : uint64_t {
658658} // namespace EnvironmentFlags
659659
660660struct InspectorParentHandle {
661- virtual ~InspectorParentHandle ();
661+ virtual ~InspectorParentHandle () = default ;
662662};
663663
664664// TODO(addaleax): Maybe move per-Environment options parsing here.
You can’t perform that action at this time.
0 commit comments