]> granicus.if.org Git - icu/commitdiff
ICU-9598 Use UBool instead of bool
authorTravis Keep <keep94@gmail.com>
Wed, 10 Oct 2012 23:23:08 +0000 (23:23 +0000)
committerTravis Keep <keep94@gmail.com>
Wed, 10 Oct 2012 23:23:08 +0000 (23:23 +0000)
X-SVN-Rev: 32593

icu4c/source/i18n/gender.cpp

index ed8d2a7b39f1619bd420e918583fcaeadaa33242..9dc5ff1f69f3fa27c13c2880f28feaf75cc69251 100644 (file)
@@ -70,7 +70,7 @@ const GenderInfo* GenderInfo::getInstance(const Locale& locale, UErrorCode& stat
   }
 
   // Make sure our cache exists.
-  bool needed;
+  UBool needed;
   UMTX_CHECK(&gGenderMetaLock, (gGenderInfoCache == NULL), needed);
   if (needed) {
     Mutex lock(&gGenderMetaLock);
@@ -175,8 +175,8 @@ UGender GenderInfo::getListGender(const UGender* genders, int32_t length, UError
   if (length == 1) {
     return genders[0];
   }
-  bool has_female = false;
-  bool has_male = false;
+  UBool has_female = FALSE;
+  UBool has_male = FALSE;
   switch (_style) {
     case MIXED_NEUTRAL:
       for (int32_t i = 0; i < length; ++i) {
@@ -188,13 +188,13 @@ UGender GenderInfo::getListGender(const UGender* genders, int32_t length, UError
             if (has_male) {
               return UGENDER_OTHER;
             }
-            has_female = true;
+            has_female = TRUE;
             break;
           case UGENDER_MALE:
             if (has_female) {
               return UGENDER_OTHER;
             }
-            has_male = true;
+            has_male = TRUE;
             break;
           default:
             break;