mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
Everywhere: Remove needless trailing semi-colons after functions
This is a new option in clang-format-16.
This commit is contained in:
parent
aff81d318b
commit
c911781c21
243 changed files with 483 additions and 481 deletions
|
@ -35,7 +35,7 @@ protected:
|
|||
convert_channel(original.blue()),
|
||||
original.alpha()
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -79,6 +79,6 @@ Color ColorBlindnessFilter::convert_color(Color original)
|
|||
(u8)(original.red() * m_red_in_green_band + original.green() * m_green_in_green_band + original.blue() * m_blue_in_green_band),
|
||||
(u8)(original.red() * m_red_in_blue_band + original.green() * m_green_in_blue_band + original.blue() * m_blue_in_blue_band),
|
||||
original.alpha());
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ protected:
|
|||
convert_channel(original.blue()),
|
||||
original.alpha()
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ public:
|
|||
virtual StringView class_name() const override { return "GrayscaleFilter"sv; }
|
||||
|
||||
protected:
|
||||
Color convert_color(Color original) override { return original.to_grayscale(); };
|
||||
Color convert_color(Color original) override { return original.to_grayscale(); }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ public:
|
|||
virtual StringView class_name() const override { return "InvertFilter"sv; }
|
||||
|
||||
protected:
|
||||
Color convert_color(Color original) override { return original.inverted(); };
|
||||
Color convert_color(Color original) override { return original.inverted(); }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ protected:
|
|||
Color convert_color(Color original) override
|
||||
{
|
||||
return original.with_alpha(m_amount * 255);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
Color convert_color(Color original) override { return original.sepia(m_amount); };
|
||||
Color convert_color(Color original) override { return original.sepia(m_amount); }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ protected:
|
|||
return Color::from_rgb(dest.value())
|
||||
.mixed_with(m_color, m_amount)
|
||||
.with_alpha(dest.alpha());
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
Gfx::Color m_color;
|
||||
|
|
|
@ -142,7 +142,7 @@ private:
|
|||
template<typename T>
|
||||
int unicode_view_width(T const& view) const;
|
||||
|
||||
void update_x_height() { m_x_height = m_baseline - m_mean_line; };
|
||||
void update_x_height() { m_x_height = m_baseline - m_mean_line; }
|
||||
|
||||
virtual bool has_color_bitmaps() const override { return false; }
|
||||
|
||||
|
|
|
@ -166,9 +166,9 @@ struct Instruction {
|
|||
bool d() const;
|
||||
bool e() const;
|
||||
|
||||
u8 flag_bits() const { return m_flag_bits; };
|
||||
u8 flag_bits() const { return m_flag_bits; }
|
||||
Opcode opcode() const { return m_opcode; }
|
||||
ReadonlyBytes values() const { return m_values; };
|
||||
ReadonlyBytes values() const { return m_values; }
|
||||
|
||||
Instruction(Opcode opcode, ReadonlyBytes values = {});
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
if (m_use_premultiplied_alpha == UsePremultipliedAlpha::Yes)
|
||||
return a.mixed_with(b, amount);
|
||||
return a.interpolate(b, amount);
|
||||
};
|
||||
}
|
||||
|
||||
Color get_color(i64 index) const
|
||||
{
|
||||
|
|
|
@ -262,7 +262,7 @@ private:
|
|||
ErrorOr<void> write_symbol(OutputHuffmanTable::Symbol symbol)
|
||||
{
|
||||
return m_bit_stream.write_bits(symbol.word, symbol.code_length);
|
||||
};
|
||||
}
|
||||
|
||||
ErrorOr<void> encode_dc(OutputHuffmanTable const& dc_table, i16 const component[], u8 component_id)
|
||||
{
|
||||
|
@ -327,7 +327,7 @@ private:
|
|||
{
|
||||
VERIFY(coefficient >= -2047 && coefficient <= 2047);
|
||||
return floor(log2(abs(coefficient))) + 1;
|
||||
};
|
||||
}
|
||||
|
||||
QuantizationTable m_luminance_quantization_table {};
|
||||
QuantizationTable m_chrominance_quantization_table {};
|
||||
|
|
|
@ -24,8 +24,8 @@ class PNGChunk {
|
|||
|
||||
public:
|
||||
explicit PNGChunk(String);
|
||||
auto const& data() const { return m_data; };
|
||||
String const& type() const { return m_type; };
|
||||
auto const& data() const { return m_data; }
|
||||
String const& type() const { return m_type; }
|
||||
ErrorOr<void> reserve(size_t bytes) { return m_data.try_ensure_capacity(bytes); }
|
||||
|
||||
template<typename T>
|
||||
|
|
|
@ -87,7 +87,7 @@ public:
|
|||
virtual size_t frame_count() override { return 1; }
|
||||
virtual size_t first_animated_frame_index() override { return 0; }
|
||||
virtual ErrorOr<ImageFrameDescriptor> frame(size_t index, Optional<IntSize> ideal_size = {}) override;
|
||||
virtual ErrorOr<Optional<ReadonlyBytes>> icc_data() override { return OptionalNone {}; };
|
||||
virtual ErrorOr<Optional<ReadonlyBytes>> icc_data() override { return OptionalNone {}; }
|
||||
|
||||
virtual ~TinyVGImageDecoderPlugin() override = default;
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
|
||||
private:
|
||||
// Simple paint styles can simply override sample_color() if they can easily generate a color from a coordinate.
|
||||
virtual Color sample_color(IntPoint) const { return Color(); };
|
||||
virtual Color sample_color(IntPoint) const { return Color(); }
|
||||
};
|
||||
|
||||
class SolidColorPaintStyle final : public PaintStyle {
|
||||
|
|
|
@ -58,7 +58,7 @@ ALWAYS_INLINE static Color color_for_format(BitmapFormat format, ARGB32 value)
|
|||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
template<BitmapFormat format = BitmapFormat::Invalid>
|
||||
ALWAYS_INLINE Color get_pixel(Gfx::Bitmap const& bitmap, int x, int y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue