| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -408,8 +408,6 @@ void FreeIsolateData(IsolateData* isolate_data) { | |||
| 408 | 408 | delete isolate_data; | |
| 409 | 409 | } | |
| 410 | 410 | ||
| 411 | - InspectorParentHandle::~InspectorParentHandle() {} | ||
| 412 | - | ||
| 413 | 411 | // Hide the internal handle class from the public API. | |
| 414 | 412 | #if HAVE_INSPECTOR | |
| 415 | 413 | struct InspectorParentHandleImpl : public InspectorParentHandle { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,7 @@ class BlobDeserializer : public BlobSerializerDeserializer { | |||
| 39 | 39 | public: | |
| 40 | 40 | explicit BlobDeserializer(bool is_debug_v, std::string_view s) | |
| 41 | 41 | : BlobSerializerDeserializer(is_debug_v), sink(s) {} | |
| 42 | - ~BlobDeserializer() {} | ||
| 42 | + ~BlobDeserializer() = default; | ||
| 43 | 43 | ||
| 44 | 44 | size_t read_total = 0; | |
| 45 | 45 | std::string_view sink; | |
@@ -85,7 +85,7 @@ class BlobSerializer : public BlobSerializerDeserializer { | |||
| 85 | 85 | public: | |
| 86 | 86 | explicit BlobSerializer(bool is_debug_v) | |
| 87 | 87 | : BlobSerializerDeserializer(is_debug_v) {} | |
| 88 | - ~BlobSerializer() {} | ||
| 88 | + ~BlobSerializer() = default; | ||
| 89 | 89 | ||
| 90 | 90 | Impl* impl() { return static_cast<Impl*>(this); } | |
| 91 | 91 | 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 { | |||
| 18 | 18 | public: | |
| 19 | 19 | typedef void (*Callback)(void*); | |
| 20 | 20 | ||
| 21 | - CleanupQueue() {} | ||
| 21 | + CleanupQueue() = default; | ||
| 22 | 22 | ||
| 23 | 23 | // Not copyable. | |
| 24 | 24 | CleanupQueue(const CleanupQueue&) = delete; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -130,8 +130,6 @@ void ECDH::MemoryInfo(MemoryTracker* tracker) const { | |||
| 130 | 130 | tracker->TrackFieldWithSize("key", key_ ? kSizeOf_EC_KEY : 0); | |
| 131 | 131 | } | |
| 132 | 132 | ||
| 133 | - ECDH::~ECDH() {} | ||
| 134 | - | ||
| 135 | 133 | void ECDH::New(const FunctionCallbackInfo<Value>& args) { | |
| 136 | 134 | Environment* env = Environment::GetCurrent(args); | |
| 137 | 135 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ int GetOKPCurveFromName(const char* name); | |||
| 20 | 20 | ||
| 21 | 21 | class ECDH final : public BaseObject { | |
| 22 | 22 | public: | |
| 23 | - ~ECDH() override; | ||
| 23 | + ~ECDH() override = default; | ||
| 24 | 24 | ||
| 25 | 25 | static void Initialize(Environment* env, v8::Local<v8::Object> target); | |
| 26 | 26 | static void RegisterExternalReferences(ExternalReferenceRegistry* registry); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -687,7 +687,7 @@ Agent::Agent(Environment* env) | |||
| 687 | 687 | debug_options_(env->options()->debug_options()), | |
| 688 | 688 | host_port_(env->inspector_host_port()) {} | |
| 689 | 689 | ||
| 690 | - Agent::~Agent() {} | ||
| 690 | + Agent::~Agent() = default; | ||
| 691 | 691 | ||
| 692 | 692 | bool Agent::Start(const std::string& path, | |
| 693 | 693 | const DebugOptions& options, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,8 +10,8 @@ namespace v8impl { | |||
| 10 | 10 | ||
| 11 | 11 | class RefTracker { | |
| 12 | 12 | public: | |
| 13 | - RefTracker() {} | ||
| 14 | - virtual ~RefTracker() {} | ||
| 13 | + RefTracker() = default; | ||
| 14 | + virtual ~RefTracker() = default; | ||
| 15 | 15 | virtual void Finalize() {} | |
| 16 | 16 | ||
| 17 | 17 | typedef RefTracker RefList; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ namespace node { | |||
| 16 | 16 | class JSONParser { | |
| 17 | 17 | public: | |
| 18 | 18 | JSONParser(); | |
| 19 | - ~JSONParser() {} | ||
| 19 | + ~JSONParser() = default; | ||
| 20 | 20 | bool Parse(const std::string& content); | |
| 21 | 21 | std::optional<std::string> GetTopLevelStringField(std::string_view field); | |
| 22 | 22 | std::optional<bool> GetTopLevelBoolField(std::string_view field); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1138,9 +1138,6 @@ void TearDownOncePerProcess() { | |||
| 1138 | 1138 | } | |
| 1139 | 1139 | } | |
| 1140 | 1140 | ||
| 1141 | - InitializationResult::~InitializationResult() {} | ||
| 1142 | - InitializationResultImpl::~InitializationResultImpl() {} | ||
| 1143 | - | ||
| 1144 | 1141 | ExitCode GenerateAndWriteSnapshotData(const SnapshotData** snapshot_data_ptr, | |
| 1145 | 1142 | const InitializationResultImpl* result) { | |
| 1146 | 1143 | ExitCode exit_code = result->exit_code_enum(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -285,7 +285,7 @@ enum Flags : uint32_t { | |||
| 285 | 285 | ||
| 286 | 286 | class NODE_EXTERN InitializationResult { | |
| 287 | 287 | public: | |
| 288 | - virtual ~InitializationResult(); | ||
| 288 | + virtual ~InitializationResult() = default; | ||
| 289 | 289 | ||
| 290 | 290 | // Returns a suggested process exit code. | |
| 291 | 291 | virtual int exit_code() const = 0; | |
@@ -654,7 +654,7 @@ enum Flags : uint64_t { | |||
| 654 | 654 | } // namespace EnvironmentFlags | |
| 655 | 655 | ||
| 656 | 656 | struct InspectorParentHandle { | |
| 657 | - virtual ~InspectorParentHandle(); | ||
| 657 | + virtual ~InspectorParentHandle() = default; | ||
| 658 | 658 | }; | |
| 659 | 659 | ||
| 660 | 660 | // TODO(addaleax): Maybe move per-Environment options parsing here. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments