[Translate] Remove the .reset(new...) pattern for std::unique_ptr |
|||
Issue descriptionIn this case my_unique_ptr.reset(new MyClass(...)); Correct pattern is now to avoid "new" and write things like my_unique_ptr = std::make_unique<MyClass>(...); Here's a naive search to find some of those cases in Translate. https://cs.chromium.org/search/?q=file:components/translate+%22new%22+case:yes&p=2&sq=package:chromium&type=cs
,
Oct 5
,
Oct 29
|
|||
►
Sign in to add a comment |
|||
Comment 1 by yyushkina@chromium.org
, Oct 5