mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 08:51:22 +00:00
- Fix more ICU warnings
svn path=/trunk/; revision=38456
This commit is contained in:
parent
5341c63e40
commit
05530904b8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue