ICU-12521 Fixing C++03 decfmtsym.cpp compiler error.
authorShane Carr <shane@unicode.org>
Mon, 9 May 2016 22:00:25 +0000 (22:00 +0000)
committerShane Carr <shane@unicode.org>
Mon, 9 May 2016 22:00:25 +0000 (22:00 +0000)
X-SVN-Rev: 38721

icu4c/source/i18n/dcfmtsym.cpp

index 25d9bc1df3e9faaaf0e166245800993acf865667..1db2ba5c20b11d62cd7fba0ada1fe198cf21aebc 100644 (file)
@@ -217,10 +217,12 @@ struct DecFmtSymDataSink : public ResourceSink {
     DecimalFormatSymbols& dfs;
     // Boolean array of whether or not we have seen a particular symbol yet.
     // Can't simpy check fSymbols because it is pre-populated with defaults.
-    UBool seenSymbol[DecimalFormatSymbols::kFormatSymbolCount] = { FALSE };
+    UBool seenSymbol[DecimalFormatSymbols::kFormatSymbolCount];
 
     // Constructor/Destructor
-    DecFmtSymDataSink(DecimalFormatSymbols& _dfs) : dfs(_dfs) {}
+    DecFmtSymDataSink(DecimalFormatSymbols& _dfs) : dfs(_dfs) {
+        uprv_memset(seenSymbol, FALSE, sizeof(seenSymbol));
+    }
     virtual ~DecFmtSymDataSink();
 
     virtual void put(const char *key, ResourceValue &value, UBool /*noFallback*/,