diff options
author | fiaxh <git@lightrise.org> | 2020-10-27 15:31:39 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-10-27 16:05:30 +0100 |
commit | 2e0357877cf3e8e391d3f8f02970defa93c710eb (patch) | |
tree | 4478a0deebbedf00934c7a7d6324180c4158bb38 /main/src/ui/conversation_content_view | |
parent | edbc8f794d42cc30bfbe6602becb43c3500e02a2 (diff) | |
download | dino-2e0357877cf3e8e391d3f8f02970defa93c710eb.tar.gz dino-2e0357877cf3e8e391d3f8f02970defa93c710eb.zip |
Fix some compiler warnings
Diffstat (limited to 'main/src/ui/conversation_content_view')
-rw-r--r-- | main/src/ui/conversation_content_view/conversation_view.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/conversation_content_view/conversation_view.vala b/main/src/ui/conversation_content_view/conversation_view.vala index dd68cef0..0d61a0d1 100644 --- a/main/src/ui/conversation_content_view/conversation_view.vala +++ b/main/src/ui/conversation_content_view/conversation_view.vala @@ -444,7 +444,7 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins was_value = scrolled.vadjustment.value; if (!reloading_mutex.trylock()) return; if (content_items.size > 0) { - Gee.List<ContentMetaItem> items = content_populator.populate_before(conversation, (content_items.first() as ContentMetaItem).content_item, 20); + Gee.List<ContentMetaItem> items = content_populator.populate_before(conversation, ((ContentMetaItem) content_items.first()).content_item, 20); foreach (ContentMetaItem item in items) { do_insert_item(item); } @@ -456,7 +456,7 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins private void load_later_messages() { if (!reloading_mutex.trylock()) return; if (content_items.size > 0 && !at_current_content) { - Gee.List<ContentMetaItem> items = content_populator.populate_after(conversation, (content_items.last() as ContentMetaItem).content_item, 20); + Gee.List<ContentMetaItem> items = content_populator.populate_after(conversation, ((ContentMetaItem) content_items.last()).content_item, 20); if (items.size == 0) { at_current_content = true; } |