* automatic whitespace cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27644 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1285,7 +1285,7 @@ BMenu::_InitData(BMessage* archive)
|
|||||||
archive->FindFloat("_maxwidth", &fMaxContentWidth);
|
archive->FindFloat("_maxwidth", &fMaxContentWidth);
|
||||||
|
|
||||||
BMessage msg;
|
BMessage msg;
|
||||||
for (int32 i = 0; archive->FindMessage("_items", i, &msg) == B_OK; i++) {
|
for (int32 i = 0; archive->FindMessage("_items", i, &msg) == B_OK; i++) {
|
||||||
BArchivable *object = instantiate_object(&msg);
|
BArchivable *object = instantiate_object(&msg);
|
||||||
if (BMenuItem *item = dynamic_cast<BMenuItem *>(object)) {
|
if (BMenuItem *item = dynamic_cast<BMenuItem *>(object)) {
|
||||||
BRect bounds;
|
BRect bounds;
|
||||||
@@ -2357,7 +2357,7 @@ BMenuItem *
|
|||||||
BMenu::_NextItem(BMenuItem *item, bool forward) const
|
BMenu::_NextItem(BMenuItem *item, bool forward) const
|
||||||
{
|
{
|
||||||
// go to next item, and skip over disabled items such as separators
|
// go to next item, and skip over disabled items such as separators
|
||||||
int32 index = fItems.IndexOf(item);
|
int32 index = fItems.IndexOf(item);
|
||||||
const int32 numItems = fItems.CountItems();
|
const int32 numItems = fItems.CountItems();
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
if (forward)
|
if (forward)
|
||||||
|
|||||||
Reference in New Issue
Block a user