- Fix more ICU warnings

svn path=/trunk/; revision=38456
This commit is contained in:
Dmitry Gorbachev 2008-12-29 13:10:33 +00:00
parent 5341c63e40
commit 05530904b8

View file

@ -1314,7 +1314,7 @@ UnicodeString::cloneArrayIfNeeded(int32_t newCapacity,
*/ */
if(forceClone || if(forceClone ||
fFlags & kBufferIsReadonly || fFlags & kBufferIsReadonly ||
fFlags & kRefCounted && refCount() > 1 || (fFlags & kRefCounted && refCount() > 1) ||
newCapacity > fCapacity newCapacity > fCapacity
) { ) {
// save old values // save old values
@ -1330,7 +1330,7 @@ UnicodeString::cloneArrayIfNeeded(int32_t newCapacity,
// allocate a new array // allocate a new array
if(allocate(growCapacity) || if(allocate(growCapacity) ||
newCapacity < growCapacity && allocate(newCapacity) (newCapacity < growCapacity && allocate(newCapacity))
) { ) {
if(doCopyArray) { if(doCopyArray) {
// copy the contents // copy the contents