summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/credit_card.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 01:22:15 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 01:22:15 +0000
commit810a52ef77564f1674a600317175743176bcc965 (patch)
treee18a35b4ef980bdb8eaad3c5812228a6e1b3ba16 /chrome/browser/autofill/credit_card.cc
parent673ccc1d607a6d7d280d89fedd3fb3bc906a7e27 (diff)
downloadchromium_src-810a52ef77564f1674a600317175743176bcc965.zip
chromium_src-810a52ef77564f1674a600317175743176bcc965.tar.gz
chromium_src-810a52ef77564f1674a600317175743176bcc965.tar.bz2
Remove most uses of EmptyString(), EmptyWString(), EmptyString16(), and EmptyGURL(), since the code in question can just use the default constructor.
BUG=none TEST=none Review URL: http://codereview.chromium.org/517054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/credit_card.cc')
-rw-r--r--chrome/browser/autofill/credit_card.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/autofill/credit_card.cc b/chrome/browser/autofill/credit_card.cc
index 97264de..00d183d 100644
--- a/chrome/browser/autofill/credit_card.cc
+++ b/chrome/browser/autofill/credit_card.cc
@@ -113,7 +113,7 @@ string16 CreditCard::GetFieldText(const AutoFillType& type) const {
string16 year = Expiration2DigitYearAsString();
if (!month.empty() && !year.empty())
return month + ASCIIToUTF16("/") + year;
- return EmptyString16();
+ return string16();
}
case CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR: {
@@ -121,7 +121,7 @@ string16 CreditCard::GetFieldText(const AutoFillType& type) const {
string16 year = Expiration4DigitYearAsString();
if (!month.empty() && !year.empty())
return month + ASCIIToUTF16("/") + year;
- return EmptyString16();
+ return string16();
}
case CREDIT_CARD_TYPE:
@@ -135,7 +135,7 @@ string16 CreditCard::GetFieldText(const AutoFillType& type) const {
default:
// ComputeDataPresentForArray will hit this repeatedly.
- return EmptyString16();
+ return string16();
}
}
@@ -186,7 +186,7 @@ void CreditCard::SetInfo(const AutoFillType& type, const string16& value) {
string16 CreditCard::ExpirationMonthAsString() const {
if (expiration_month_ == 0)
- return EmptyString16();
+ return string16();
string16 month = IntToString16(expiration_month_);
if (expiration_month_ >= 10)
@@ -199,14 +199,14 @@ string16 CreditCard::ExpirationMonthAsString() const {
string16 CreditCard::Expiration4DigitYearAsString() const {
if (expiration_year_ == 0)
- return EmptyString16();
+ return string16();
return IntToString16(Expiration4DigitYear());
}
string16 CreditCard::Expiration2DigitYearAsString() const {
if (expiration_year_ == 0)
- return EmptyString16();
+ return string16();
return IntToString16(Expiration2DigitYear());
}