1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

Everywhere: Remove needless trailing semi-colons after functions

This is a new option in clang-format-16.
This commit is contained in:
Timothy Flynn 2023-07-07 22:48:11 -04:00 committed by Linus Groh
parent aff81d318b
commit c911781c21
243 changed files with 483 additions and 481 deletions

View file

@ -34,8 +34,8 @@ public:
{
}
DeprecatedFlyString name() const { return m_name; };
bool never_needs_parameters() const { return m_never_needs_parameters; };
DeprecatedFlyString name() const { return m_name; }
bool never_needs_parameters() const { return m_never_needs_parameters; }
static PDFErrorOr<ColorSpaceFamily> get(DeprecatedFlyString const&);
#define ENUMERATE(name, ever_needs_parameters) static ColorSpaceFamily name;

View file

@ -25,7 +25,7 @@ public:
// Parses the header and initializes the xref table and trailer
PDFErrorOr<void> initialize();
bool can_resolve_references() { return m_xref_table; };
bool can_resolve_references() { return m_xref_table; }
PDFErrorOr<Value> parse_object_with_index(u32 index);

View file

@ -83,7 +83,7 @@ PDFErrorOr<ByteBuffer> Filter::decode_ascii_hex(ReadonlyBytes bytes)
TRY(output.try_append(high_nibble << 4));
return output;
};
}
PDFErrorOr<ByteBuffer> Filter::decode_ascii85(ReadonlyBytes bytes)
{
@ -138,7 +138,7 @@ PDFErrorOr<ByteBuffer> Filter::decode_ascii85(ReadonlyBytes bytes)
}
return TRY(ByteBuffer::copy(buff.span()));
};
}
PDFErrorOr<ByteBuffer> Filter::decode_png_prediction(Bytes bytes, int bytes_per_row)
{
@ -208,7 +208,7 @@ PDFErrorOr<ByteBuffer> Filter::decode_png_prediction(Bytes bytes, int bytes_per_
PDFErrorOr<ByteBuffer> Filter::decode_lzw(ReadonlyBytes)
{
return Error::rendering_unsupported_error("LZW Filter is not supported");
};
}
PDFErrorOr<ByteBuffer> Filter::decode_flate(ReadonlyBytes bytes, int predictor, int columns, int colors, int bits_per_component)
{
@ -228,7 +228,7 @@ PDFErrorOr<ByteBuffer> Filter::decode_flate(ReadonlyBytes bytes, int predictor,
return AK::Error::from_string_literal("Flate input data is not divisible into columns");
return decode_png_prediction(buff, bytes_per_row);
};
}
PDFErrorOr<ByteBuffer> Filter::decode_run_length(ReadonlyBytes bytes)
{
@ -256,17 +256,17 @@ PDFErrorOr<ByteBuffer> Filter::decode_run_length(ReadonlyBytes bytes)
}
}
return buffer;
};
}
PDFErrorOr<ByteBuffer> Filter::decode_ccitt(ReadonlyBytes)
{
return Error::rendering_unsupported_error("CCITTFaxDecode Filter is unsupported");
};
}
PDFErrorOr<ByteBuffer> Filter::decode_jbig2(ReadonlyBytes)
{
return Error::rendering_unsupported_error("JBIG2 Filter is unsupported");
};
}
PDFErrorOr<ByteBuffer> Filter::decode_dct(ReadonlyBytes bytes)
{
@ -277,16 +277,16 @@ PDFErrorOr<ByteBuffer> Filter::decode_dct(ReadonlyBytes bytes)
return TRY(frame.image->serialize_to_byte_buffer());
}
return AK::Error::from_string_literal("Not a JPEG image!");
};
}
PDFErrorOr<ByteBuffer> Filter::decode_jpx(ReadonlyBytes)
{
return Error::rendering_unsupported_error("JPX Filter is not supported");
};
}
PDFErrorOr<ByteBuffer> Filter::decode_crypt(ReadonlyBytes)
{
return Error::rendering_unsupported_error("Crypt Filter is not supported");
};
}
}

View file

@ -29,7 +29,7 @@ public:
virtual PDFErrorOr<Gfx::FloatPoint> draw_string(Gfx::Painter&, Gfx::FloatPoint, DeprecatedString const&, Color const&, float font_size, float character_spacing, float horizontal_scaling) = 0;
virtual Type type() const = 0;
DeprecatedFlyString base_font_name() const { return m_base_font_name; };
DeprecatedFlyString base_font_name() const { return m_base_font_name; }
protected:
virtual PDFErrorOr<void> initialize(Document* document, NonnullRefPtr<DictObject> const& dict, float font_size);

View file

@ -90,6 +90,6 @@ float Type0Font::get_char_width(u16 char_code) const
PDFErrorOr<Gfx::FloatPoint> Type0Font::draw_string(Gfx::Painter&, Gfx::FloatPoint, DeprecatedString const&, Color const&, float, float, float)
{
return Error::rendering_unsupported_error("Type0 font not implemented yet");
};
}
}

View file

@ -83,7 +83,7 @@ public:
ALWAYS_INLINE Value const& at(size_t index) const { return m_elements[index]; }
PDFErrorOr<NonnullRefPtr<Object>> get_object_at(Document* document, size_t index) const;
NonnullRefPtr<Object> get_object_at(size_t index) const { return at(index).get<NonnullRefPtr<Object>>(); };
NonnullRefPtr<Object> get_object_at(size_t index) const { return at(index).get<NonnullRefPtr<Object>>(); }
#define DEFINE_INDEXER(class_name, snake_name) \
PDFErrorOr<NonnullRefPtr<class_name>> get_##snake_name##_at(Document*, size_t index) const; \
@ -162,8 +162,8 @@ public:
virtual ~StreamObject() override = default;
[[nodiscard]] ALWAYS_INLINE NonnullRefPtr<DictObject> dict() const { return m_dict; }
[[nodiscard]] ReadonlyBytes bytes() const { return m_buffer.bytes(); };
[[nodiscard]] ByteBuffer& buffer() { return m_buffer; };
[[nodiscard]] ReadonlyBytes bytes() const { return m_buffer.bytes(); }
[[nodiscard]] ByteBuffer& buffer() { return m_buffer; }
char const* type_name() const override { return "stream"; }
DeprecatedString to_deprecated_string(int indent) const override;