]> granicus.if.org Git - icu/commitdiff
ICU-11233 Remove U_FINAL for classes we subclass. Produces bad code.
authorAndy Heninger <andy.heninger@gmail.com>
Thu, 4 Sep 2014 18:58:17 +0000 (18:58 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Thu, 4 Sep 2014 18:58:17 +0000 (18:58 +0000)
X-SVN-Rev: 36346

icu4c/source/common/unicode/umachine.h
icu4c/source/common/unicode/usetiter.h
icu4c/source/i18n/unicode/tblcoll.h
icu4c/source/test/intltest/regcoll.cpp
icu4c/source/test/intltest/transrt.cpp

index dd37108bb346bcf446044d2e5025d75e5fbab29d..532159216a5e3d13027a7ffef6fc328c7b6f64b9 100644 (file)
  * Defined to the C++11 "override" keyword if available.
  * Denotes a class or member which is an override of the base class.
  * May result in an error if it applied to something not an override.
- * (NOTE: '#define U_OVERRIDE' at the top of a compilation unit will
- *  disable this keyword's use.)
  * @internal
  */
 
  * Defined to the C++11 "final" keyword if available.
  * Denotes a class or member which may not be overridden in subclasses.
  * May result in an error if subclasses attempt to override.
- * (NOTE: '#define U_FINAL' at the top of a compilation unit will
- *  disable this keyword's use.)
  * @internal
  */
 
index 21c9babd0cf76d8a6d9b19bdd9cec3aee539813d..bf927b08cee86d0c1c8f99b88e8a8b81dd2f006d 100644 (file)
@@ -58,7 +58,7 @@ class UnicodeString;
  * @author M. Davis
  * @stable ICU 2.4
  */
-class U_COMMON_API UnicodeSetIterator U_FINAL : public UObject {
+class U_COMMON_API UnicodeSetIterator : public UObject {
 
  protected:
 
index 878c1605af767c168365cf77f00984c8caef694e..64f092c63f2be0cf37c05b17f457775ae76e967b 100644 (file)
@@ -108,7 +108,7 @@ class UVector64;
  * Note, RuleBasedCollator is not to be subclassed.
  * @see        Collator
  */
-class U_I18N_API RuleBasedCollator U_FINAL : public Collator {
+class U_I18N_API RuleBasedCollator : public Collator {
 public:
     /**
      * RuleBasedCollator constructor. This takes the table rules and builds a
index f3b583bd839f74213f588628b005469cf959902e..0cc127e704a81ee38a0d16906e2f912e0f7a6777 100644 (file)
@@ -4,10 +4,6 @@
  * others. All Rights Reserved.
  ********************************************************************/
 
-// My4146160Collator overrides RBC. Disable U_FINAL for this test.
-#define U_FINAL
-#define U_OVERRIDE
-
 #include "unicode/utypes.h"
 
 #if !UCONFIG_NO_COLLATION
index 3f1d57b0310da6cc532c4e5dc9e02ae7e17cb6d7..66336ad754f164acc49877929ba00ff8c8a7da28 100644 (file)
@@ -8,10 +8,6 @@
 **********************************************************************
 */
 
-// AbbreviatedUnicodeSetIterator overrides UnicodeSetIterator.
-#define U_FINAL
-#define U_OVERRIDE
-
 #include "unicode/utypes.h"
 
 #if !UCONFIG_NO_TRANSLITERATION