mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
AK: Make DisjointChunks not query size() when there are no chunks
This commit is contained in:
parent
2df54a7b56
commit
49cbd4dcca
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ public:
|
||||||
return sum;
|
return sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_empty() const { return size() == 0; }
|
bool is_empty() const { return m_chunks.size() == 0 || size() == 0; }
|
||||||
|
|
||||||
DisjointSpans<T> spans() const&
|
DisjointSpans<T> spans() const&
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue