1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

LibGUI: Use default instead of an empty constructor/destructor

Default implementations allow for more optimizations.
See: https://pvs-studio.com/en/docs/warnings/v832/
This commit is contained in:
Brian Gianforcaro 2021-09-15 23:57:01 -07:00 committed by Andreas Kling
parent 4fe99ff0d6
commit a7364eef3c
4 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ class ModelIndex {
friend class Model;
public:
ModelIndex() { }
ModelIndex() = default;
bool is_valid() const { return m_model && m_row != -1 && m_column != -1; }
int row() const { return m_row; }