]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/dcfmtimp.h
ICU-531.30.tar.gz
[apple/icu.git] / icuSources / i18n / dcfmtimp.h
index 4256fd07618de278029c5b606467652c060efca0..0f27a8d947866af474aa72b8db1c86b1837d3fec 100644 (file)
@@ -1,6 +1,6 @@
 /*
 ********************************************************************************
-*   Copyright (C) 2012, International Business Machines
+*   Copyright (C) 2012-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 ********************************************************************************/
 
@@ -26,7 +26,12 @@ enum EDecimalFormatFastpathStatus {
 struct DecimalFormatInternal {
   uint8_t    fFastFormatStatus;
   uint8_t    fFastParseStatus;
-  
+
+  DecimalFormatInternal &operator=(const DecimalFormatInternal& rhs) {
+    fFastParseStatus = rhs.fFastParseStatus;
+    fFastFormatStatus = rhs.fFastFormatStatus;
+    return *this;
+  }
 #ifdef FMT_DEBUG
   void dump() const {
     printf("DecimalFormatInternal: fFastFormatStatus=%c, fFastParseStatus=%c\n",
@@ -34,7 +39,7 @@ struct DecimalFormatInternal {
            "NY?"[(int)fFastParseStatus&3]
            );
   }
-#endif  
+#endif
 };