ICU-20602 copyErrorTo() functions should be const
This commit is contained in:
parent
6e6e65904e
commit
6671947d3e
@ -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;
|
||||||
|
@ -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_;
|
||||||
|
Loading…
Reference in New Issue
Block a user