From ce8e689663530c3e0b0c7cb945ce98399ce86282 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 15 Apr 2003 15:58:20 +0000 Subject: [PATCH] ICU-1839 Use const UnicodeString & and not just UnicodeString. X-SVN-Rev: 11547 --- icu4c/source/i18n/decimfmt.cpp | 2 +- icu4c/source/i18n/unicode/decimfmt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/i18n/decimfmt.cpp b/icu4c/source/i18n/decimfmt.cpp index 4d972229226..db23d0c156e 100644 --- a/icu4c/source/i18n/decimfmt.cpp +++ b/icu4c/source/i18n/decimfmt.cpp @@ -1730,7 +1730,7 @@ UnicodeString DecimalFormat::getPadCharacterString() { * @see #getPadPosition * @see #setPadPosition */ -void DecimalFormat::setPadCharacter(UnicodeString padChar) { +void DecimalFormat::setPadCharacter(const UnicodeString &padChar) { if (padChar.length() > 0) { fPad = padChar; } diff --git a/icu4c/source/i18n/unicode/decimfmt.h b/icu4c/source/i18n/unicode/decimfmt.h index f66332f8364..de87a909237 100644 --- a/icu4c/source/i18n/unicode/decimfmt.h +++ b/icu4c/source/i18n/unicode/decimfmt.h @@ -694,7 +694,7 @@ public: * @see #setPadPosition * @stable ICU 2.0 */ - virtual void setPadCharacter(UnicodeString padChar); + virtual void setPadCharacter(const UnicodeString &padChar); /** * Get the position at which padding will take place. This is the location