Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: source/i18n/currfmt.cpp

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/currfmt.h ('k') | source/i18n/currunit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/currfmt.cpp
diff --git a/source/i18n/currfmt.cpp b/source/i18n/currfmt.cpp
index 97be9730f35595d01231970e98ac2cb855963730..23a7d52acac1573e06a2cc0babcc1ba07281e294 100644
--- a/source/i18n/currfmt.cpp
+++ b/source/i18n/currfmt.cpp
@@ -1,6 +1,6 @@
/*
**********************************************************************
-* Copyright (c) 2004-2012 International Business Machines
+* Copyright (c) 2004-2014 International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Author: Alan Liu
@@ -8,8 +8,6 @@
* Since: ICU 3.0
**********************************************************************
*/
-#include "utypeinfo.h" // for 'typeid' to work
-
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
@@ -21,7 +19,7 @@
U_NAMESPACE_BEGIN
CurrencyFormat::CurrencyFormat(const Locale& locale, UErrorCode& ec) :
- fmt(NULL)
+ MeasureFormat(locale, UMEASFMT_WIDTH_WIDE, ec), fmt(NULL)
{
fmt = NumberFormat::createCurrencyInstance(locale, ec);
}
@@ -36,17 +34,6 @@ CurrencyFormat::~CurrencyFormat() {
delete fmt;
}
-UBool CurrencyFormat::operator==(const Format& other) const {
- if (this == &other) {
- return TRUE;
- }
- if (typeid(*this) != typeid(other)) {
- return FALSE;
- }
- const CurrencyFormat* c = (const CurrencyFormat*) &other;
- return *fmt == *c->fmt;
-}
-
Format* CurrencyFormat::clone() const {
return new CurrencyFormat(*this);
}
« no previous file with comments | « source/i18n/currfmt.h ('k') | source/i18n/currunit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698