mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03:00
AK: Use default constructor of Optional if an unset bit is not found
This commit is contained in:
parent
4479e874da
commit
0433c0780d
Notes:
sideshowbarker
2024-07-19 08:49:46 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/0433c0780d2 Pull-request: https://github.com/SerenityOS/serenity/pull/1366 Reviewed-by: https://github.com/awesomekling
@ -156,7 +156,7 @@ public:
|
||||
if (!get(j))
|
||||
return j;
|
||||
|
||||
return -1;
|
||||
return {};
|
||||
}
|
||||
|
||||
Optional<size_t> find_longest_range_of_unset_bits(size_t max_length, size_t& found_range_size) const
|
||||
|
Loading…
Reference in New Issue
Block a user