Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: rlz/win/lib/process_info.cc

Issue 14114002: Rewrite scoped_array<T> to scoped_ptr<T[]> in rlz. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « rlz/win/lib/machine_id_win.cc ('k') | rlz/win/lib/rlz_lib_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/win/lib/process_info.cc
diff --git a/rlz/win/lib/process_info.cc b/rlz/win/lib/process_info.cc
index 13612c7d2ff69322c21a0b66ce7c930e4dec77f8..9c3c5163dd8c4112214827bb39ad0b78f70c36e1 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,
« no previous file with comments | « rlz/win/lib/machine_id_win.cc ('k') | rlz/win/lib/rlz_lib_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698