mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 22:42:18 +00:00
AK: Make DisjointChunks not query size() when there are no chunks
This commit is contained in:
parent
2df54a7b56
commit
49cbd4dcca
Notes:
sideshowbarker
2024-07-17 23:07:41 +09:00
Author: https://github.com/alimpfard
Commit: 49cbd4dcca
Pull-request: https://github.com/SerenityOS/serenity/pull/11347
Reviewed-by: https://github.com/awesomekling
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