Replace size() == 0 with is_empty().

This commit is contained in:
Yufeng Ying 2025-03-20 00:07:31 +08:00
parent c7ea8614d7
commit 4f4031a675
147 changed files with 300 additions and 300 deletions

View file

@ -38,7 +38,7 @@ Line2D::Line2D() {
#ifdef DEBUG_ENABLED
Rect2 Line2D::_edit_get_rect() const {
if (_points.size() == 0) {
if (_points.is_empty()) {
return Rect2(0, 0, 0, 0);
}
Vector2 min = _points[0];