From 1208fc7d370ca3bcefe2fd60853e68366eb8ad50 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 4 Mar 2021 11:05:34 +0100 Subject: AK: Simplify Bitmap and implement in terms of BitmapView Add Bitmap::view() and forward most of the calls to BitmapView since the code was identical. Bitmap is now primarily concerned with its dynamically allocated backing store and BitmapView deals with the rest. --- Userland/DevTools/Profiler/Profile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/DevTools/Profiler/Profile.h') diff --git a/Userland/DevTools/Profiler/Profile.h b/Userland/DevTools/Profiler/Profile.h index 8a76073487..1f223f2395 100644 --- a/Userland/DevTools/Profiler/Profile.h +++ b/Userland/DevTools/Profiler/Profile.h @@ -98,7 +98,7 @@ public: void will_track_seen_events(size_t profile_event_count) { if (m_seen_events.size() != profile_event_count) - m_seen_events = Bitmap::create(profile_event_count, false); + m_seen_events = Bitmap { profile_event_count, false }; } bool has_seen_event(size_t event_index) const { return m_seen_events.get(event_index); } void did_see_event(size_t event_index) { m_seen_events.set(event_index, true); } -- cgit v1.2.3