diff options
author | Yi Kong <yikong@google.com> | 2018-10-29 14:28:56 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2018-10-29 14:39:24 -0700 |
commit | c57c680b16eb4857eef16134a811f4c2ff9d95f0 (patch) | |
tree | 9527328cb8738878e1b727a48620769224dddb2c /compiler/driver/simple_compiler_options_map.h | |
parent | ce2a00daa92670a4fc01ef59fdbc3769a846f69c (diff) |
Modernise code to use std::make_unique
Generated by clang-tidy.
Test: m checkbuild
Change-Id: Idb24960d9326c0d94ab5d04b18deb0894d23da9f
Diffstat (limited to 'compiler/driver/simple_compiler_options_map.h')
-rw-r--r-- | compiler/driver/simple_compiler_options_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/driver/simple_compiler_options_map.h b/compiler/driver/simple_compiler_options_map.h index 3860da9f66..e7a51a4995 100644 --- a/compiler/driver/simple_compiler_options_map.h +++ b/compiler/driver/simple_compiler_options_map.h @@ -50,7 +50,7 @@ using Parser = CmdlineParser<SimpleParseArgumentMap, SimpleParseArgumentMapKey>; static inline Parser CreateSimpleParser(bool ignore_unrecognized) { std::unique_ptr<Parser::Builder> parser_builder = - std::unique_ptr<Parser::Builder>(new Parser::Builder()); + std::make_unique<Parser::Builder>(); AddCompilerOptionsArgumentParserOptions<SimpleParseArgumentMap>(*parser_builder); |