diff --git a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.mm b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.mm index e84b5746d167f..ced139de2c9c1 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.mm @@ -8,8 +8,8 @@ #include "flutter/fml/platform/darwin/cf_utils.h" #import "flutter/shell/platform/darwin/ios/ios_surface.h" -static int kMaxPointsInVerb = 4; -static const NSUInteger kFlutterClippingMaskViewPoolCapacity = 5; +static constexpr int kMaxPointsInVerb = 4; +static constexpr NSUInteger kFlutterClippingMaskViewPoolCapacity = 5; namespace flutter { diff --git a/third_party/accessibility/ax/platform/ax_unique_id_unittest.cc b/third_party/accessibility/ax/platform/ax_unique_id_unittest.cc index 5f62ad3d115f7..d6e791ffc7d56 100644 --- a/third_party/accessibility/ax/platform/ax_unique_id_unittest.cc +++ b/third_party/accessibility/ax/platform/ax_unique_id_unittest.cc @@ -54,7 +54,7 @@ TEST(AXPlatformUniqueIdTest, UnassignedIdsAreReused) { } TEST(AXPlatformUniqueIdTest, DoesCreateCorrectId) { - int kLargerThanMaxId = kMaxId * 2; + constexpr int kLargerThanMaxId = kMaxId * 2; std::unique_ptr ids[kLargerThanMaxId]; // Creates and releases to fill up the internal static counter. for (int i = 0; i < kLargerThanMaxId; i++) {