* style cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42722 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -198,8 +198,7 @@ DevicesView::RebuildDevicesOutline()
|
|||||||
AddChildrenToOutlineByConnection(fDevices[i]);
|
AddChildrenToOutlineByConnection(fDevices[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else if (fOrderBy == ORDER_BY_CATEGORY) {
|
||||||
else if (fOrderBy == ORDER_BY_CATEGORY) {
|
|
||||||
// Add all categories to the outline
|
// Add all categories to the outline
|
||||||
CategoryMapIterator iter;
|
CategoryMapIterator iter;
|
||||||
for (iter = fCategoryMap.begin(); iter != fCategoryMap.end(); iter++) {
|
for (iter = fCategoryMap.begin(); iter != fCategoryMap.end(); iter++) {
|
||||||
@@ -212,10 +211,10 @@ DevicesView::RebuildDevicesOutline()
|
|||||||
|
|
||||||
iter = fCategoryMap.find(category);
|
iter = fCategoryMap.find(category);
|
||||||
if (iter == fCategoryMap.end()) {
|
if (iter == fCategoryMap.end()) {
|
||||||
std::cerr << "Tried to add device without category, file a bug\n";
|
std::cerr
|
||||||
|
<< "Tried to add device without category, file a bug\n";
|
||||||
continue;
|
continue;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
fDevicesOutline->AddUnder(fDevices[i], iter->second);
|
fDevicesOutline->AddUnder(fDevices[i], iter->second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user