]> granicus.if.org Git - icu/commitdiff
ICU-20646 make Edits::copyErrorTo() const
authorMarkus Scherer <markus.icu@gmail.com>
Wed, 21 Aug 2019 23:11:54 +0000 (16:11 -0700)
committerSteven R. Loomis <srl295@gmail.com>
Thu, 22 Aug 2019 20:25:01 +0000 (13:25 -0700)
icu4c/source/common/edits.cpp
icu4c/source/common/unicode/edits.h

index 00a8d601a1cc80fbfcc46b7e1c677803e41511b8..95f0c19a728cf411cbfa97de5b8d4878186aafb2 100644 (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_;
index 01155ab02e14386554bf415e4ee385df3e33cced..c3ceaccb3b3802972b82c50e2541fc891f24f9a3 100644 (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?