mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -18,7 +18,7 @@ struct FontSelector {
|
|||
int weight { 0 };
|
||||
int slope { 0 };
|
||||
|
||||
bool operator==(const FontSelector& other) const
|
||||
bool operator==(FontSelector const& other) const
|
||||
{
|
||||
return family == other.family && point_size == other.point_size && weight == other.weight && slope == other.slope;
|
||||
}
|
||||
|
@ -27,15 +27,15 @@ struct FontSelector {
|
|||
namespace AK {
|
||||
template<>
|
||||
struct Traits<FontSelector> : public GenericTraits<FontSelector> {
|
||||
static unsigned hash(const FontSelector& key) { return pair_int_hash(pair_int_hash(key.family.hash(), key.weight), key.point_size); }
|
||||
static unsigned hash(FontSelector const& key) { return pair_int_hash(pair_int_hash(key.family.hash(), key.weight), key.point_size); }
|
||||
};
|
||||
}
|
||||
|
||||
class FontCache {
|
||||
public:
|
||||
static FontCache& the();
|
||||
RefPtr<Gfx::Font> get(const FontSelector&) const;
|
||||
void set(const FontSelector&, NonnullRefPtr<Gfx::Font>);
|
||||
RefPtr<Gfx::Font> get(FontSelector const&) const;
|
||||
void set(FontSelector const&, NonnullRefPtr<Gfx::Font>);
|
||||
|
||||
private:
|
||||
FontCache() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue