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

Side by Side Diff: patches/gcc4.6.patch

Issue 8333007: Fix a gcc 4.6 compiler warning. (Closed) Base URL: http://git.chromium.org/chromium/deps/icu46.git@master
Patch Set: Created 9 years, 2 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 unified diff | Download patch
« no previous file with comments | « README.chromium ('k') | public/common/unicode/unistr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 diff --git source/common/unicode/unistr.h source/common/unicode/unistr.h
2 index 57ea346..46b9d95 100644
3 --- source/common/unicode/unistr.h
4 +++ source/common/unicode/unistr.h
5 @@ -4021,8 +4021,7 @@ UnicodeString::replace(int32_t start,
6 UChar32 srcChar) {
7 UChar buffer[U16_MAX_LENGTH];
8 int32_t count = 0;
9 - UBool isError = FALSE;
10 - U16_APPEND(buffer, count, U16_MAX_LENGTH, srcChar, isError);
11 + U16_APPEND_UNSAFE(buffer, count, srcChar);
12 return doReplace(start, _length, buffer, 0, count);
13 }
14
15 @@ -4324,8 +4323,7 @@ inline UnicodeString&
16 UnicodeString::append(UChar32 srcChar) {
17 UChar buffer[U16_MAX_LENGTH];
18 int32_t _length = 0;
19 - UBool isError = FALSE;
20 - U16_APPEND(buffer, _length, U16_MAX_LENGTH, srcChar, isError);
21 + U16_APPEND_UNSAFE(buffer, _length, srcChar);
22 return doReplace(length(), 0, buffer, 0, _length);
23 }
24
OLDNEW
« no previous file with comments | « README.chromium ('k') | public/common/unicode/unistr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698