warning cleanup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5223 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -35,8 +35,8 @@ DeskButton::DeskButton(BRect frame, entry_ref *entry_ref, const char *name, BLis
|
|||||||
uint32 resizeMask, uint32 flags)
|
uint32 resizeMask, uint32 flags)
|
||||||
: BView(frame, name, resizeMask, flags),
|
: BView(frame, name, resizeMask, flags),
|
||||||
ref(*entry_ref),
|
ref(*entry_ref),
|
||||||
titleList(titles),
|
actionList(actions),
|
||||||
actionList(actions)
|
titleList(titles)
|
||||||
{
|
{
|
||||||
// Background Color
|
// Background Color
|
||||||
SetViewColor(184,184,184);
|
SetViewColor(184,184,184);
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ main(int, char **argv)
|
|||||||
const char *name=scratch;
|
const char *name=scratch;
|
||||||
if (db.GetItemInfo(i, &name) >= B_OK) {
|
if (db.GetItemInfo(i, &name) >= B_OK) {
|
||||||
found++;
|
found++;
|
||||||
printf("Item %d: '%s'\n", i, name);
|
printf("Item %ld: '%s'\n", i, name);
|
||||||
free((void *)name); /* INTENDED */
|
free((void *)name); /* INTENDED */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -319,13 +319,13 @@ main(int, char **argv)
|
|||||||
if (strcmp(argv[i], "--remove") == 0) {
|
if (strcmp(argv[i], "--remove") == 0) {
|
||||||
BDeskbar db;
|
BDeskbar db;
|
||||||
int32 found = 0;
|
int32 found = 0;
|
||||||
int32 count = db.CountItems();
|
uint32 count = db.CountItems();
|
||||||
/* BDeskbar is definitely doomed ! */
|
/* BDeskbar is definitely doomed ! */
|
||||||
while ((db.RemoveItem("DeskButton") == B_OK) && (db.CountItems() < count)) {
|
while ((db.RemoveItem("DeskButton") == B_OK) && (db.CountItems() < count)) {
|
||||||
count = db.CountItems();
|
count = db.CountItems();
|
||||||
found++;
|
found++;
|
||||||
}
|
}
|
||||||
printf("removed %d items.\n", found);
|
printf("removed %ld items.\n", found);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user