]> granicus.if.org Git - icu/commitdiff
ICU-21844 Fix variable shadowing
authorNg Zhi An <zhin@google.com>
Mon, 22 Nov 2021 22:19:43 +0000 (14:19 -0800)
committerMarkus Scherer <markus.icu@gmail.com>
Fri, 11 Mar 2022 19:10:53 +0000 (19:10 +0000)
icu4c/source/common/unicode/localematcher.h

index 252bb7fdc20753c909140a030242353d206fdcb0..0f7e04a3afdcf238680d88207f51741e193b957e 100644 (file)
@@ -461,13 +461,13 @@ public:
          * Option for whether to include or ignore one-way (fallback) match data.
          * By default, they are included.
          *
-         * @param direction the match direction to set.
+         * @param matchDirection the match direction to set.
          * @return this Builder object
          * @stable ICU 67
          */
-        Builder &setDirection(ULocMatchDirection direction) {
+        Builder &setDirection(ULocMatchDirection matchDirection) {
             if (U_SUCCESS(errorCode_)) {
-                direction_ = direction;
+                direction_ = matchDirection;
             }
             return *this;
         }