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

Unified Diff: ui/base/win/ime_input.cc

Issue 11878022: ui: Convert scoped_arrays to the new scoped_ptr style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « ui/base/gestures/velocity_calculator.h ('k') | ui/base/x/x11_atom_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/ime_input.cc
diff --git a/ui/base/win/ime_input.cc b/ui/base/win/ime_input.cc
index 1bfb80f865f23665f533efe2c834b9ea71d01350..34adb097f141253c7a378bd4d40a12f1d33b0451 100644
--- a/ui/base/win/ime_input.cc
+++ b/ui/base/win/ime_input.cc
@@ -42,7 +42,7 @@ void GetCompositionTargetRange(HIMC imm_context, int* target_start,
if (attribute_size > 0) {
int start = 0;
int end = 0;
- scoped_array<char> attribute_data(new char[attribute_size]);
+ scoped_ptr<char[]> attribute_data(new char[attribute_size]);
if (attribute_data.get()) {
::ImmGetCompositionString(imm_context, GCS_COMPATTR,
attribute_data.get(), attribute_size);
@@ -77,7 +77,7 @@ void GetCompositionUnderlines(HIMC imm_context,
NULL, 0);
int clause_length = clause_size / sizeof(uint32);
if (clause_length) {
- scoped_array<uint32> clause_data(new uint32[clause_length]);
+ scoped_ptr<uint32[]> clause_data(new uint32[clause_length]);
if (clause_data.get()) {
::ImmGetCompositionString(imm_context, GCS_COMPCLAUSE,
clause_data.get(), clause_size);
@@ -515,7 +515,7 @@ bool ImeInput::IsRTLKeyboardLayoutInstalled() {
// Retrieve the keyboard layouts in an array and check if there is an RTL
// layout in it.
- scoped_array<HKL> layouts(new HKL[size]);
+ scoped_ptr<HKL[]> layouts(new HKL[size]);
::GetKeyboardLayoutList(size, layouts.get());
for (int i = 0; i < size; ++i) {
if (IsRTLPrimaryLangID(PRIMARYLANGID(layouts[i]))) {
« no previous file with comments | « ui/base/gestures/velocity_calculator.h ('k') | ui/base/x/x11_atom_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698