ICU-20646 make Edits::copyErrorTo() const

This commit is contained in:
Markus Scherer 2019-08-21 16:11:54 -07:00 committed by Steven R. Loomis
parent 0a01b29005
commit deec7ef683
2 changed files with 2 additions and 2 deletions

View file

@ -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_;

View file

@ -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?