diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-11 01:34:39 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-11 01:34:39 +0000 |
commit | 07890324ed098994dd336ee00e54074e6b029014 (patch) | |
tree | 7c7c0e77f07bef4ebfa39f895f558947b9970286 /rlz/lib | |
parent | 3cc9039277c75cbf73476095b74c5fa196faa357 (diff) | |
download | chromium_src-07890324ed098994dd336ee00e54074e6b029014.zip chromium_src-07890324ed098994dd336ee00e54074e6b029014.tar.gz chromium_src-07890324ed098994dd336ee00e54074e6b029014.tar.bz2 |
Rewrite scoped_array<T> to scoped_ptr<T[]> 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
Diffstat (limited to 'rlz/lib')
-rw-r--r-- | rlz/lib/financial_ping.cc | 2 | ||||
-rw-r--r-- | rlz/lib/rlz_lib_test.cc | 2 |
2 files changed, 2 insertions, 2 deletions
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<char> buffer(new char[kMaxPingResponseLength]); + scoped_ptr<char[]> 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 T> class typed_buffer_ptr { - scoped_array<char> buffer_; + scoped_ptr<char[]> buffer_; public: typed_buffer_ptr() { |