Commit ea7052c
committed
DPL: keep code checker happy
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 b5dfe50 commit ea7052c
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