Fix the build after r261785.
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 May 2020 23:18:32 +0000 (23:18 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 May 2020 23:18:32 +0000 (23:18 +0000)
* Modules/applepay/PaymentInstallmentConfiguration.mm:
(WebCore::fromDecimalNumber):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261789 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/applepay/PaymentInstallmentConfiguration.mm

index fc5c5ff..5f75bf7 100644 (file)
@@ -1,3 +1,10 @@
+2020-05-16  Andy Estes  <aestes@apple.com>
+
+        Fix the build after r261785.
+
+        * Modules/applepay/PaymentInstallmentConfiguration.mm:
+        (WebCore::fromDecimalNumber):
+
 2020-05-16  David Kilzer  <ddkilzer@apple.com>
 
         Let Xcode have its way with WebCore project
index 8fa83ed..fc084f9 100644 (file)
@@ -44,9 +44,9 @@ static NSDecimalNumber *toDecimalNumber(const String& amount)
 static String fromDecimalNumber(NSDecimalNumber *number)
 {
     auto numberFormatter = adoptNS([[NSNumberFormatter alloc] init]);
-    numberFormatter.numberStyle = NSNumberFormatterNoStyle;
-    numberFormatter.minimumIntegerDigits = 1;
-    numberFormatter.minimumFractionDigits = 2;
+    [numberFormatter setNumberStyle:NSNumberFormatterNoStyle];
+    [numberFormatter setMinimumIntegerDigits:1];
+    [numberFormatter setMinimumFractionDigits:2];
     return [numberFormatter stringFromNumber:number];
 }