Browse Source

Implicitly create unique_ptr instead of make_unique

refactor-rfc-normalize-cpp
Silvio Brändle 11 months ago
parent
commit
636024225a
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      cpp/test/phonenumbers/phonecontextparser_test.cc

+ 1
- 2
cpp/test/phonenumbers/phonecontextparser_test.cc View File

@ -31,8 +31,7 @@ class PhoneContextParserTest : public testing::Test {
protected:
PhoneContextParserTest()
: country_calling_codes_(
std::make_unique<std::vector<int>>(std::vector<int>{64})),
: country_calling_codes_(new std::vector<int>{64}),
reg_exps_(new PhoneNumberRegExpsAndMappings()),
normalizer_(new PhoneNumberNormalizer(reg_exps_)),
context_parser_(new PhoneContextParser(


Loading…
Cancel
Save