diff options
-rw-r--r-- | rlz/lib/financial_ping.cc | 2 | ||||
-rw-r--r-- | rlz/lib/rlz_lib_test.cc | 2 | ||||
-rw-r--r-- | rlz/win/lib/machine_id_win.cc | 2 | ||||
-rw-r--r-- | rlz/win/lib/process_info.cc | 2 | ||||
-rw-r--r-- | rlz/win/lib/rlz_lib_win.cc | 2 |
5 files changed, 5 insertions, 5 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() { diff --git a/rlz/win/lib/machine_id_win.cc b/rlz/win/lib/machine_id_win.cc index 8eb138a..fe0917c 100644 --- a/rlz/win/lib/machine_id_win.cc +++ b/rlz/win/lib/machine_id_win.cc @@ -41,7 +41,7 @@ bool GetSystemVolumeSerialNumber(int* number) { bool GetComputerSid(const wchar_t* account_name, SID* sid, DWORD sid_size) { static const DWORD kStartDomainLength = 128; // reasonable to start with - scoped_array<wchar_t> domain_buffer(new wchar_t[kStartDomainLength]); + scoped_ptr<wchar_t[]> domain_buffer(new wchar_t[kStartDomainLength]); DWORD domain_size = kStartDomainLength; DWORD sid_dword_size = sid_size; SID_NAME_USE sid_name_use; diff --git a/rlz/win/lib/process_info.cc b/rlz/win/lib/process_info.cc index 13612c7..9c3c516 100644 --- a/rlz/win/lib/process_info.cc +++ b/rlz/win/lib/process_info.cc @@ -40,7 +40,7 @@ HRESULT GetCurrentUser(std::wstring* name, // (Following call will fail with ERROR_INSUFFICIENT_BUFFER and give us the // required size.) - scoped_array<char> token_user_bytes; + scoped_ptr<char[]> token_user_bytes; DWORD token_user_size; DWORD token_user_size2; BOOL result = ::GetTokenInformation(token, TokenUser, NULL, 0, diff --git a/rlz/win/lib/rlz_lib_win.cc b/rlz/win/lib/rlz_lib_win.cc index e7b145e..d8b1c1e 100644 --- a/rlz/win/lib/rlz_lib_win.cc +++ b/rlz/win/lib/rlz_lib_win.cc @@ -55,7 +55,7 @@ namespace rlz_lib { template<class T> class typed_buffer_ptr { - scoped_array<char> buffer_; + scoped_ptr<char[]> buffer_; public: typed_buffer_ptr() { |