With C++11, unique_ptr.reset(other_unique_ptr.release()) can be rewritten as:
unique_ptr = std::move(other_unique_ptr)
and unique_ptr.reset(return_unique_ptr_func().release()) can simply be:
unique_ptr = return_unique_ptr_func();
Here's a code search query to try to find some of these: https://cs.chromium.org/search/?q=reset%5C(.*release%5C(%5C)%5C);&sq=package:chromium&type=cs
Hello,
I just downloaded the code and I was looking for an easy patch and I think this is it.
Newbie question: How should the patch(es) be separated? Should this be in one patch or multiple? And if so, is there a clear scope for patches (files, modules, etc.).
Thank you, and sorry for the newbie question.
Cheers.
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.
Sorry for the inconvenience if the bug really should have been left as Available.
For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Comment 1 by brusi_...@hotmail.com
, Sep 9 2016