diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-11 02:09:42 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-11 02:09:42 +0000 |
commit | 4ddc0c93427d2233b9f59d97973d9ccc1e569a68 (patch) | |
tree | 73f844744782659722decaa460f3f9e81b2aad40 /content/renderer | |
parent | bfd4b8173ac22677dac50ab1c7cf0dc1cbf3c05b (diff) | |
download | chromium_src-4ddc0c93427d2233b9f59d97973d9ccc1e569a68.zip chromium_src-4ddc0c93427d2233b9f59d97973d9ccc1e569a68.tar.gz chromium_src-4ddc0c93427d2233b9f59d97973d9ccc1e569a68.tar.bz2 |
Rewrite scoped_array<T> to scoped_ptr<T[]> in content.
This is a manual cleanup pass using sed for files which are not built on
Linux.
BUG=171111
Review URL: https://chromiumcodereview.appspot.com/14114004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
-rw-r--r-- | content/renderer/hyphenator/hyphenator.cc | 2 | ||||
-rw-r--r-- | content/renderer/pepper/pepper_truetype_font_win.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/content/renderer/hyphenator/hyphenator.cc b/content/renderer/hyphenator/hyphenator.cc index b3b9e28..564fe46b 100644 --- a/content/renderer/hyphenator/hyphenator.cc +++ b/content/renderer/hyphenator/hyphenator.cc @@ -24,7 +24,7 @@ namespace { // times. This class incrementally counts the number of converted UTF-16 // characters to avoid this problem. // -// scoped_array<size_t> position(new size_t[text.length()]); +// scoped_ptr<size_t[]> position(new size_t[text.length()]); // for (size_t i = 0; i < text.length(); ++i) // position[i] = UTF8ToUTF16(text.substr(0, i)).length(); // diff --git a/content/renderer/pepper/pepper_truetype_font_win.cc b/content/renderer/pepper/pepper_truetype_font_win.cc index 4c09ac5..2e24d7c 100644 --- a/content/renderer/pepper/pepper_truetype_font_win.cc +++ b/content/renderer/pepper/pepper_truetype_font_win.cc @@ -148,7 +148,7 @@ int32_t PepperTrueTypeFontWin::GetTableTags(std::vector<uint32_t>* tags) { // The size in bytes of an entry in the table directory. static const DWORD kDirectoryEntrySize = 16; DWORD directory_size = num_tables * kDirectoryEntrySize; - scoped_array<uint8_t> directory(new uint8_t[directory_size]); + scoped_ptr<uint8_t[]> directory(new uint8_t[directory_size]); // Get the table directory entries after the font header. if (::GetFontData(hdc, 0 /* tag */, kFontHeaderSize, directory.get(), |