]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/unicode/fieldpos.h
ICU-400.37.tar.gz
[apple/icu.git] / icuSources / i18n / unicode / fieldpos.h
index 62c6a6fc678ed14585bfca4cb961500524ba9dac..38a9576e782a93ec642333bfbb9870da7794db91 100644 (file)
@@ -1,6 +1,6 @@
 /*
  ********************************************************************************
- *   Copyright (C) 1997-2005, International Business Machines
+ *   Copyright (C) 1997-2006, International Business Machines
  *   Corporation and others.  All Rights Reserved.
  ********************************************************************************
  *
@@ -272,12 +272,9 @@ FieldPosition::operator=(const FieldPosition& copy)
 inline UBool
 FieldPosition::operator==(const FieldPosition& copy) const
 {
-    if(    fField         != copy.fField || 
-        fEndIndex     != copy.fEndIndex ||
-        fBeginIndex != copy.fBeginIndex) 
-        return FALSE;
-    else
-        return TRUE;
+    return (fField == copy.fField &&
+        fEndIndex == copy.fEndIndex &&
+        fBeginIndex == copy.fBeginIndex);
 }
 
 inline UBool