refactor: run clang-tidy (#20231)
* refactor: clang-tidy modernize-use-nullptr * refactor: clang-tidy modernize-use-equals-default * refactor: clang-tidy modernize-make-unique * refactor: omit nullptr arg from unique_ptr.reset() As per comment by @miniak
This commit is contained in:
parent
660e566201
commit
2b316f3843
93 changed files with 261 additions and 223 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
#include "shell/browser/browser_process_impl.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "chrome/common/chrome_switches.h"
|
||||
|
@ -282,7 +284,7 @@ const std::string& BrowserProcessImpl::GetApplicationLocale() {
|
|||
printing::PrintJobManager* BrowserProcessImpl::print_job_manager() {
|
||||
#if BUILDFLAG(ENABLE_PRINTING)
|
||||
if (!print_job_manager_)
|
||||
print_job_manager_.reset(new printing::PrintJobManager());
|
||||
print_job_manager_ = std::make_unique<printing::PrintJobManager>();
|
||||
return print_job_manager_.get();
|
||||
#else
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue