Commit 7cd4b7f
authored
DPL: keep code checker happy (#14966)
The code checker complains about the unique_ptr going out of scope.
However this is a false positive because such unique_ptr has a custom
deletion policy to mimick the behavior of an observer_ptr.
In order to keep the code checker happy, we use release, so that the bare
pointer is returned without any complain. Given the custom deleter, the semantic
is actually the same.1 parent 8ead458 commit 7cd4b7f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments