Index: source/i18n/transreg.cpp |
diff --git a/source/i18n/transreg.cpp b/source/i18n/transreg.cpp |
index 77281511b0b11e0cbfbcbd3b0d9f6a9e08bc7ea2..445a26ac670bfd262572521ef6fa8e985829cb6b 100644 |
--- a/source/i18n/transreg.cpp |
+++ b/source/i18n/transreg.cpp |
@@ -1,6 +1,6 @@ |
/* |
********************************************************************** |
-* Copyright (c) 2001-2011, International Business Machines |
+* Copyright (c) 2001-2014, International Business Machines |
* Corporation and others. All Rights Reserved. |
********************************************************************** |
* Date Name Description |
@@ -728,7 +728,7 @@ int32_t TransliteratorRegistry::countAvailableSources(void) const { |
UnicodeString& TransliteratorRegistry::getAvailableSource(int32_t index, |
UnicodeString& result) const { |
- int32_t pos = -1; |
+ int32_t pos = UHASH_FIRST; |
const UHashElement *e = 0; |
while (index-- >= 0) { |
e = specDAG.nextElement(pos); |
@@ -757,7 +757,7 @@ UnicodeString& TransliteratorRegistry::getAvailableTarget(int32_t index, |
result.truncate(0); // invalid source |
return result; |
} |
- int32_t pos = -1; |
+ int32_t pos = UHASH_FIRST; |
const UHashElement *e = 0; |
while (index-- >= 0) { |
e = targets->nextElement(pos); |