]> granicus.if.org Git - icu/commitdiff
ICU-20110 Adding const to FormattedNumber#appendTo
authorShane Carr <shane@unicode.org>
Thu, 30 Aug 2018 22:53:35 +0000 (15:53 -0700)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:39 +0000 (14:27 -0700)
icu4c/source/i18n/number_fluent.cpp
icu4c/source/i18n/unicode/numberformatter.h

index 687adb6b5babd24e55c1446c79fdc0098453d6d3..06b10fd27651ab15f9838f31c7adc284e1990491 100644 (file)
@@ -776,7 +776,7 @@ Appendable& FormattedNumber::appendTo(Appendable& appendable) {
     return appendTo(appendable, localStatus);
 }
 
-Appendable& FormattedNumber::appendTo(Appendable& appendable, UErrorCode& status) {
+Appendable& FormattedNumber::appendTo(Appendable& appendable, UErrorCode& status) const {
     if (U_FAILURE(status)) {
         return appendable;
     }
index 3ab08319f73bc7ce93cfa0f58a06b9e2ed31f162..4dd03ce8472fd683ba317f618750434a1902b511 100644 (file)
@@ -2430,7 +2430,7 @@ class U_I18N_API FormattedNumber : public UMemory {
      * @draft ICU 62
      * @see Appendable
      */
-    Appendable &appendTo(Appendable &appendable, UErrorCode& status);
+    Appendable &appendTo(Appendable &appendable, UErrorCode& status) const;
 
 #ifndef U_HIDE_DEPRECATED_API
     /**