From 0433c0780d2163171b0bd94d019e9beb603b8811 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sun, 8 Mar 2020 13:58:22 +0200 Subject: [PATCH] AK: Use default constructor of Optional if an unset bit is not found --- AK/Bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Bitmap.h b/AK/Bitmap.h index aaaa46e6bc..92e7c4c890 100644 --- a/AK/Bitmap.h +++ b/AK/Bitmap.h @@ -156,7 +156,7 @@ public: if (!get(j)) return j; - return -1; + return {}; } Optional find_longest_range_of_unset_bits(size_t max_length, size_t& found_range_size) const