From a3ae9000bca65d2ac30f2c2a73da570de91c799e Mon Sep 17 00:00:00 2001 From: Doug Felt Date: Mon, 19 May 2003 17:04:05 +0000 Subject: [PATCH] ticket: 2755: fix compiler warnings for unused parameters X-SVN-Rev: 12001 --- icu4c/source/i18n/coll.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/icu4c/source/i18n/coll.cpp b/icu4c/source/i18n/coll.cpp index e9680f0c4e..e018965bfe 100644 --- a/icu4c/source/i18n/coll.cpp +++ b/icu4c/source/i18n/coll.cpp @@ -80,7 +80,7 @@ class ICUCollatorFactory : public ICUResourceBundleFactory { }; UObject* -ICUCollatorFactory::create(const ICUServiceKey& key, const ICUService* service, UErrorCode& status) const { +ICUCollatorFactory::create(const ICUServiceKey& key, const ICUService* /* service */, UErrorCode& status) const { if (handlesKey(key, status)) { const LocaleKey& lkey = (const LocaleKey&)key; Locale loc; @@ -111,6 +111,9 @@ class ICUCollatorService : public ICULocaleService { virtual UObject* handleDefault(const ICUServiceKey& key, UnicodeString* actualID, UErrorCode& status) const { LocaleKey& lkey = (LocaleKey&)key; + if (actualID) { + lkey.canonicalID(*actualID); + } Locale loc; lkey.canonicalLocale(loc); return Collator::makeInstance(loc, status); @@ -405,7 +408,7 @@ int32_t Collator::getBound(const uint8_t *source, } void -Collator::setLocales(const Locale& requestedLocale, const Locale& validLocale) { +Collator::setLocales(const Locale& /* requestedLocale */, const Locale& /* validLocale */) { } // ------------------------------------- @@ -473,7 +476,7 @@ public: }; UObject* -CFactory::create(const ICUServiceKey& key, const ICUService* service, UErrorCode& status) const +CFactory::create(const ICUServiceKey& key, const ICUService* /* service */, UErrorCode& status) const { if (handlesKey(key, status)) { const LocaleKey& lkey = (const LocaleKey&)key;