[haiku-commits] r40408 - haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 9 Feb 2011 20:44:59 +0100 (CET)

Author: czeidler
Date: 2011-02-09 20:44:59 +0100 (Wed, 09 Feb 2011)
New Revision: 40408
Changeset: http://dev.haiku-os.org/changeset/40408

Modified:
   
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPFolderConfig.cpp
Log:
Belongs to the last commit, sorry.



Modified: 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPFolderConfig.cpp
===================================================================
--- 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPFolderConfig.cpp 
    2011-02-09 19:20:34 UTC (rev 40407)
+++ 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPFolderConfig.cpp 
    2011-02-09 19:44:59 UTC (rev 40408)
@@ -161,10 +161,7 @@
        BListView::MouseDown(where);
 
        int32 index = IndexOf(where);
-       BListItem* item = ItemAt(index);
-       if (item == NULL)
-               return;
-       EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
+       EditableListItem* handler = 
dynamic_cast<EditableListItem*>(ItemAt(index));
        if (handler == NULL)
                return;
 
@@ -184,10 +181,7 @@
        }
 
        int32 index = IndexOf(where);
-       BListItem* item = ItemAt(index);
-       if (item == NULL)
-               return;
-       EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
+       EditableListItem* handler = 
dynamic_cast<EditableListItem*>(ItemAt(index));
        if (handler == NULL)
                return;
 


Other related posts:

  • » [haiku-commits] r40408 - haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap - clemens . zeidler