Bläddra i källkod

LibGfx: Fix constructor initialisation style in GradientPainting

MacDue 2 år sedan
förälder
incheckning
d11baf48ae
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      Userland/Libraries/LibGfx/GradientPainting.cpp

+ 4 - 4
Userland/Libraries/LibGfx/GradientPainting.cpp

@@ -53,10 +53,10 @@ enum class UsePremultipliedAlpha {
 class GradientLine {
 class GradientLine {
 public:
 public:
     GradientLine(int gradient_length, Span<ColorStop const> color_stops, Optional<float> repeat_length, UsePremultipliedAlpha use_premultiplied_alpha = UsePremultipliedAlpha::Yes)
     GradientLine(int gradient_length, Span<ColorStop const> color_stops, Optional<float> repeat_length, UsePremultipliedAlpha use_premultiplied_alpha = UsePremultipliedAlpha::Yes)
-        : m_repeating { repeat_length.has_value() }
-        , m_start_offset { round_to<int>((m_repeating ? color_stops.first().position : 0.0f) * gradient_length) }
-        , m_color_stops { color_stops }
-        , m_use_premultiplied_alpha { use_premultiplied_alpha }
+        : m_repeating(repeat_length.has_value())
+        , m_start_offset(round_to<int>((m_repeating ? color_stops.first().position : 0.0f) * gradient_length))
+        , m_color_stops(color_stops)
+        , m_use_premultiplied_alpha(use_premultiplied_alpha)
     {
     {
         // Avoid generating excessive amounts of colors when the not enough shades to fill that length.
         // Avoid generating excessive amounts of colors when the not enough shades to fill that length.
         auto necessary_length = min<int>((color_stops.size() - 1) * 255, gradient_length);
         auto necessary_length = min<int>((color_stops.size() - 1) * 255, gradient_length);