From bec7d0202c19c9e568a067ac637cb96b2e90844b Mon Sep 17 00:00:00 2001 From: Tadeu Zagallo Date: Tue, 7 Apr 2015 13:43:08 -0700 Subject: [PATCH] [ReactNative] Fix variable shadowing in RCTText --- Libraries/Text/RCTText.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Text/RCTText.m b/Libraries/Text/RCTText.m index c7f00b934..d6e00f1b6 100644 --- a/Libraries/Text/RCTText.m +++ b/Libraries/Text/RCTText.m @@ -62,8 +62,8 @@ _layoutManager = layoutManager; - for (NSLayoutManager *layoutManager in _textStorage.layoutManagers) { - [_textStorage removeLayoutManager:layoutManager]; + for (NSLayoutManager *existingLayoutManager in _textStorage.layoutManagers) { + [_textStorage removeLayoutManager:existingLayoutManager]; } [_textStorage addLayoutManager:_layoutManager];