From 294da6bff9bc12419ef4568d1bc3c4964c6de0a9 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Wed, 9 Feb 2011 19:44:59 +0000 Subject: [PATCH] Belongs to the last commit, sorry. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40408 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../inbound_protocols/imap/IMAPFolderConfig.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPFolderConfig.cpp b/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPFolderConfig.cpp index d50bf147b2..e845ad1964 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPFolderConfig.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPFolderConfig.cpp @@ -161,10 +161,7 @@ EditListView::MouseDown(BPoint where) BListView::MouseDown(where); int32 index = IndexOf(where); - BListItem* item = ItemAt(index); - if (item == NULL) - return; - EditableListItem* handler = dynamic_cast(item); + EditableListItem* handler = dynamic_cast(ItemAt(index)); if (handler == NULL) return; @@ -184,10 +181,7 @@ EditListView::MouseUp(BPoint where) } int32 index = IndexOf(where); - BListItem* item = ItemAt(index); - if (item == NULL) - return; - EditableListItem* handler = dynamic_cast(item); + EditableListItem* handler = dynamic_cast(ItemAt(index)); if (handler == NULL) return;