mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-20646 make Edits::copyErrorTo() const
This commit is contained in:
parent
0a01b29005
commit
deec7ef683
2 changed files with 2 additions and 2 deletions
|
@ -243,7 +243,7 @@ UBool Edits::growArray() {
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
UBool Edits::copyErrorTo(UErrorCode &outErrorCode) {
|
||||
UBool Edits::copyErrorTo(UErrorCode &outErrorCode) const {
|
||||
if (U_FAILURE(outErrorCode)) { return TRUE; }
|
||||
if (U_SUCCESS(errorCode_)) { return FALSE; }
|
||||
outErrorCode = errorCode_;
|
||||
|
|
|
@ -162,7 +162,7 @@ public:
|
|||
* @return TRUE if U_FAILURE(outErrorCode)
|
||||
* @stable ICU 59
|
||||
*/
|
||||
UBool copyErrorTo(UErrorCode &outErrorCode);
|
||||
UBool copyErrorTo(UErrorCode &outErrorCode) const;
|
||||
|
||||
/**
|
||||
* How much longer is the new text compared with the old text?
|
||||
|
|
Loading…
Add table
Reference in a new issue