1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

AK: Make HashTable and HashMap use size_t for size and capacity

This commit is contained in:
Andreas Kling 2020-02-24 09:42:52 +01:00
parent 3252a6925e
commit b813b2f871
4 changed files with 28 additions and 28 deletions

View file

@ -65,11 +65,11 @@ public:
int rows() const { return m_rows; }
int columns() const { return m_columns; }
int mine_count() const { return m_mine_count; }
size_t mine_count() const { return m_mine_count; }
int square_size() const { return 15; }
bool is_single_chording() const { return m_single_chording; }
void set_field_size(int rows, int columns, int mine_count);
void set_field_size(int rows, int columns, size_t mine_count);
void set_single_chording(bool new_val);
void reset();
@ -105,7 +105,7 @@ private:
int m_rows { 0 };
int m_columns { 0 };
int m_mine_count { 0 };
size_t m_mine_count { 0 };
int m_unswept_empties { 0 };
Vector<OwnPtr<Square>> m_squares;
RefPtr<Gfx::Bitmap> m_mine_bitmap;