ICU-20602 copyErrorTo() functions should be const

This commit is contained in:
Frank Tang 2019-05-30 16:01:44 -07:00 committed by Frank Yung-Fong Tang
parent 6e6e65904e
commit 6671947d3e
2 changed files with 2 additions and 2 deletions

View File

@ -433,7 +433,7 @@ Locale LocaleBuilder::build(UErrorCode& errorCode)
return product; return product;
} }
UBool LocaleBuilder::copyErrorTo(UErrorCode &outErrorCode) { UBool LocaleBuilder::copyErrorTo(UErrorCode &outErrorCode) const {
if (U_FAILURE(outErrorCode)) { if (U_FAILURE(outErrorCode)) {
// Do not overwrite the older error code // Do not overwrite the older error code
return TRUE; return TRUE;

View File

@ -288,7 +288,7 @@ public:
* @return TRUE if U_FAILURE(outErrorCode) * @return TRUE if U_FAILURE(outErrorCode)
* @draft ICU 65 * @draft ICU 65
*/ */
UBool copyErrorTo(UErrorCode &outErrorCode); UBool copyErrorTo(UErrorCode &outErrorCode) const;
private: private:
UErrorCode status_; UErrorCode status_;