X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/common/servlkf.cpp?ds=sidebyside diff --git a/icuSources/common/servlkf.cpp b/icuSources/common/servlkf.cpp index c455080f..8486c2a8 100644 --- a/icuSources/common/servlkf.cpp +++ b/icuSources/common/servlkf.cpp @@ -1,6 +1,6 @@ /** ******************************************************************************* - * Copyright (C) 2001-2005, International Business Machines Corporation and * + * Copyright (C) 2001-2014, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* * @@ -71,9 +71,8 @@ LocaleKeyFactory::updateVisibleIDs(Hashtable& result, UErrorCode& status) const const Hashtable* supported = getSupportedIDs(status); if (supported) { UBool visible = (_coverage & 0x1) == 0; - const UHashElement* elem = NULL; - int32_t pos = 0; + int32_t pos = UHASH_FIRST; while ((elem = supported->nextElement(pos)) != NULL) { const UnicodeString& id = *((const UnicodeString*)elem->key.pointer); if (!visible) { @@ -127,9 +126,9 @@ UnicodeString& LocaleKeyFactory::debug(UnicodeString& result) const { debugClass(result); - result.append(", name: "); + result.append((UnicodeString)", name: "); result.append(_name); - result.append(", coverage: "); + result.append((UnicodeString)", coverage: "); result.append(_coverage); return result; } @@ -137,7 +136,7 @@ LocaleKeyFactory::debug(UnicodeString& result) const UnicodeString& LocaleKeyFactory::debugClass(UnicodeString& result) const { - return result.append("LocaleKeyFactory"); + return result.append((UnicodeString)"LocaleKeyFactory"); } #endif