summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/CEventLoop.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-24 08:42:55 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-24 08:42:55 +0200
commit93489fbc4c3bee24262e7d9240fa307454ed2a05 (patch)
tree9fa05d82479ec7d4888d1300b14baa32936f4aab /Libraries/LibCore/CEventLoop.h
parent3c5befde36ea97f84c28b0e77d220bfba5a2373c (diff)
downloadserenity-93489fbc4c3bee24262e7d9240fa307454ed2a05.zip
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. :^)
Diffstat (limited to 'Libraries/LibCore/CEventLoop.h')
-rw-r--r--Libraries/LibCore/CEventLoop.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibCore/CEventLoop.h b/Libraries/LibCore/CEventLoop.h
index a5370cc428..54bbf1d240 100644
--- a/Libraries/LibCore/CEventLoop.h
+++ b/Libraries/LibCore/CEventLoop.h
@@ -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;