AK: Make DisjointChunks not query size() when there are no chunks

This commit is contained in:
Ali Mohammad Pur 2021-12-21 18:06:40 +03:30 committed by Andreas Kling
parent 2df54a7b56
commit 49cbd4dcca
Notes: sideshowbarker 2024-07-17 23:07:41 +09:00

View file

@ -251,7 +251,7 @@ public:
return sum;
}
bool is_empty() const { return size() == 0; }
bool is_empty() const { return m_chunks.size() == 0 || size() == 0; }
DisjointSpans<T> spans() const&
{