[haiku-commits] r39269 - haiku/trunk/src/apps/debugger/user_interface/gui/teams_window

  • From: philippe.houdoin@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 2 Nov 2010 12:31:01 +0100 (CET)

Author: phoudoin
Date: 2010-11-02 12:31:01 +0100 (Tue, 02 Nov 2010)
New Revision: 39269
Changeset: http://dev.haiku-os.org/changeset/39269

Modified:
   
haiku/trunk/src/apps/debugger/user_interface/gui/teams_window/TeamsListView.cpp
Log:
Fix style.


Modified: 
haiku/trunk/src/apps/debugger/user_interface/gui/teams_window/TeamsListView.cpp
===================================================================
--- 
haiku/trunk/src/apps/debugger/user_interface/gui/teams_window/TeamsListView.cpp 
    2010-11-02 11:17:39 UTC (rev 39268)
+++ 
haiku/trunk/src/apps/debugger/user_interface/gui/teams_window/TeamsListView.cpp 
    2010-11-02 11:31:01 UTC (rev 39269)
@@ -298,7 +298,7 @@
 
        while (get_next_team_info(&tmi_cookie, &tmi) == B_OK) {
                TeamListItem* item = new(std::nothrow)  TeamListItem(tmi);
-               if (!item) {
+               if (item == NULL) {
                        // Memory issue. Bail out.
                        break;
                }
@@ -336,15 +336,16 @@
                                item = (TeamListItem*) ItemAt(index);
                }
 
-               if (!item || tmi.team != item->TeamID()) {
+               if (item == NULL || tmi.team != item->TeamID()) {
                        // Team not found in previously known teams list: 
insert a new item
                        TeamListItem* newItem = new(std::nothrow) 
TeamListItem(tmi);
                        if (newItem != NULL) {
                                bool added;
 
-                               if (!item) // No item found with bigger team 
id: append at end
+                               if (item == NULL) {
+                                       // No item found with bigger team id: 
append at list end
                                        added = AddItem(newItem);
-                               else
+                               } else
                                        added = AddItem(newItem, index);
 
                                if (!added) {


Other related posts:

  • » [haiku-commits] r39269 - haiku/trunk/src/apps/debugger/user_interface/gui/teams_window - philippe . houdoin