Commit 44d5ecf
src: use smart pointer instead of new and delete
Use an std::unique_ptr for variables that are deleted
right after creation.
Since the destructor of InspectorTimer is private
but needed by the unique_ptr, define deleter_type as friend.
PR-URL: #17020
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>1 parent bb5a3aa commit 44d5ecfCopy full SHA for 44d5ecf
File tree
Expand file treeCollapse file tree
2 files changed
+8
-6
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
2 files changed
+8
-6
lines changedOpen diff view settings
Collapse file
+5-3Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
261 | 261 | |
262 | 262 | |
263 | 263 | |
264 | | - |
| 264 | + |
265 | 265 | |
266 | | - |
267 | | - |
| 266 | + |
| 267 | + |
268 | 268 | |
269 | 269 | |
270 | 270 | |
271 | 271 | |
272 | 272 | |
273 | 273 | |
274 | 274 | |
| 275 | + |
| 276 | + |
275 | 277 | |
276 | 278 | |
277 | 279 | |
|
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | | - |
118 | | - |
119 | | - |
| 117 | + |
| 118 | + |
| 119 | + |
120 | 120 | |
121 | 121 | |
122 | 122 | |
|
0 commit comments