From 67952fab2c766ac5eacc15bb78e5af4039a3d398 Mon Sep 17 00:00:00 2001 From: Adam Cozzette Date: Wed, 14 Mar 2018 11:17:48 -0700 Subject: Deleted scoped_ptr.h We no longer need this, now that we have finished the switch to C++11 and are using std::unique_ptr. --- conformance/conformance_cpp.cc | 1 - conformance/conformance_test.h | 3 +-- conformance/conformance_test_runner.cc | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) (limited to 'conformance') diff --git a/conformance/conformance_cpp.cc b/conformance/conformance_cpp.cc index 9540b50e..97ae1a7a 100644 --- a/conformance/conformance_cpp.cc +++ b/conformance/conformance_cpp.cc @@ -45,7 +45,6 @@ using google::protobuf::Descriptor; using google::protobuf::DescriptorPool; using google::protobuf::Message; using google::protobuf::MessageFactory; -using google::protobuf::internal::scoped_ptr; using google::protobuf::util::BinaryToJsonString; using google::protobuf::util::JsonToBinaryString; using google::protobuf::util::NewTypeResolverForDescriptorPool; diff --git a/conformance/conformance_test.h b/conformance/conformance_test.h index 4882412c..2649f8b2 100644 --- a/conformance/conformance_test.h +++ b/conformance/conformance_test.h @@ -256,8 +256,7 @@ class ConformanceTestSuite { // The set of tests that the testee opted out of; std::set skipped_; - google::protobuf::internal::scoped_ptr - type_resolver_; + std::unique_ptr type_resolver_; std::string type_url_; }; diff --git a/conformance/conformance_test_runner.cc b/conformance/conformance_test_runner.cc index 09631f0c..b0357b87 100644 --- a/conformance/conformance_test_runner.cc +++ b/conformance/conformance_test_runner.cc @@ -68,7 +68,6 @@ using conformance::ConformanceRequest; using conformance::ConformanceResponse; -using google::protobuf::internal::scoped_array; using google::protobuf::StringAppendF; using std::string; using std::vector; @@ -183,7 +182,7 @@ class ForkPipeRunner : public google::protobuf::ConformanceTestRunner { CHECK_SYSCALL(close(toproc_pipe_fd[1])); CHECK_SYSCALL(close(fromproc_pipe_fd[0])); - scoped_array executable(new char[executable_.size() + 1]); + std::unique_ptr executable(new char[executable_.size() + 1]); memcpy(executable.get(), executable_.c_str(), executable_.size()); executable[executable_.size()] = '\0'; -- cgit v1.2.3