mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
Convert HashMap<Key, OwnPtr<T>> to HashMap<Key, NonnullOwnPtr<T>>.
In every case I found, we never wanted to support null entry values. With NonnullOwnPtr, we can encode that at the type level. :^)
This commit is contained in:
parent
3c5befde36
commit
93489fbc4c
Notes:
sideshowbarker
2024-07-19 13:04:39 +09:00
Author: https://github.com/awesomekling
Commit: 93489fbc4c
8 changed files with 13 additions and 13 deletions
|
@ -81,7 +81,7 @@ private:
|
|||
bool has_expired(const timeval& now) const;
|
||||
};
|
||||
|
||||
static HashMap<int, OwnPtr<EventLoopTimer>>* s_timers;
|
||||
static HashMap<int, NonnullOwnPtr<EventLoopTimer>>* s_timers;
|
||||
static int s_next_timer_id;
|
||||
|
||||
static HashTable<CNotifier*>* s_notifiers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue