From 07890324ed098994dd336ee00e54074e6b029014 Mon Sep 17 00:00:00 2001 From: "dcheng@chromium.org" Date: Thu, 11 Apr 2013 01:34:39 +0000 Subject: Rewrite scoped_array to scoped_ptr in rlz. This is a manual cleanup pass using sed for files which are not built on Linux. BUG=171111 Review URL: https://chromiumcodereview.appspot.com/14114002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193534 0039d316-1c4b-4281-b951-d872f2087c98 --- rlz/lib/financial_ping.cc | 2 +- rlz/lib/rlz_lib_test.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'rlz/lib') diff --git a/rlz/lib/financial_ping.cc b/rlz/lib/financial_ping.cc index c1313d1..48c446e 100644 --- a/rlz/lib/financial_ping.cc +++ b/rlz/lib/financial_ping.cc @@ -252,7 +252,7 @@ bool FinancialPing::PingServer(const char* request, std::string* response) { return false; // Get the response text. - scoped_array buffer(new char[kMaxPingResponseLength]); + scoped_ptr buffer(new char[kMaxPingResponseLength]); if (buffer.get() == NULL) return false; diff --git a/rlz/lib/rlz_lib_test.cc b/rlz/lib/rlz_lib_test.cc index 86e659c..b5ef72e 100644 --- a/rlz/lib/rlz_lib_test.cc +++ b/rlz/lib/rlz_lib_test.cc @@ -524,7 +524,7 @@ TEST_F(RlzLibTest, ClearProductState) { #if defined(OS_WIN) template class typed_buffer_ptr { - scoped_array buffer_; + scoped_ptr buffer_; public: typed_buffer_ptr() { -- cgit v1.1