From bd02ec057cc12ee0176acfb74b908889af90ce87 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Fri, 24 Feb 2012 19:44:26 +0000 Subject: [PATCH] Style fix. --- Foundation/CPNumberFormatter.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/CPNumberFormatter.j b/Foundation/CPNumberFormatter.j index fda0ba00a..3bb9489a9 100644 --- a/Foundation/CPNumberFormatter.j +++ b/Foundation/CPNumberFormatter.j @@ -77,7 +77,7 @@ CPNumberFormatterRoundHalfUp = CPRoundPlain; - (CPString)stringFromNumber:(CPNumber)number { // TODO Add locale support. - switch(_numberStyle) + switch (_numberStyle) { case CPNumberFormatterDecimalStyle: UPDATE_NUMBER_HANDLER_IF_NECESSARY(); @@ -96,7 +96,7 @@ CPNumberFormatterRoundHalfUp = CPRoundPlain; // TODO This is just a temporary solution. Should be generalised. // Add in thousands separators. if (perMillSymbol) - while(commaPosition < [preFraction length]) + while (commaPosition < [preFraction length]) { preFraction = [preFraction stringByReplacingCharactersInRange:CPMakeRange(commaPosition, 0) withString:perMillSymbol]; commaPosition += 4;