ShorcutsPreferences: fixes 64 bit warnings
This commit is contained in:
parent
4c1efaad9c
commit
0bbc331f6b
|
@ -488,7 +488,7 @@ ShortcutsSpec::GetCellText(int whichColumn) const
|
||||||
if (temp == NULL)
|
if (temp == NULL)
|
||||||
temp = "";
|
temp = "";
|
||||||
} else if (fKey > 0xFF) {
|
} else if (fKey > 0xFF) {
|
||||||
sprintf(fScratch, "#%lx", fKey);
|
sprintf(fScratch, "#%" B_PRIx32, fKey);
|
||||||
return fScratch;
|
return fScratch;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -569,7 +569,8 @@ ShortcutsWindow::MessageReceived(BMessage* msg)
|
||||||
if (fLastOpenWasAppend == false) {
|
if (fLastOpenWasAppend == false) {
|
||||||
// Clear the menu...
|
// Clear the menu...
|
||||||
while (ShortcutsSpec* item
|
while (ShortcutsSpec* item
|
||||||
= ((ShortcutsSpec*)fColumnListView->RemoveItem(0L))) {
|
= ((ShortcutsSpec*)
|
||||||
|
fColumnListView->RemoveItem((int32)0))) {
|
||||||
delete item;
|
delete item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1255,7 +1255,7 @@ bool ColumnListView::RemoveItems(int32 fullListIndex, int32 count)
|
||||||
CLVListItem* TheItem;
|
CLVListItem* TheItem;
|
||||||
if(fHierarchical)
|
if(fHierarchical)
|
||||||
{
|
{
|
||||||
uint32 LastSuperItemLevel = ULONG_MAX;
|
uint32 LastSuperItemLevel = UINT32_MAX;
|
||||||
int32 Counter;
|
int32 Counter;
|
||||||
int32 DisplayItemsToRemove = 0;
|
int32 DisplayItemsToRemove = 0;
|
||||||
int32 FirstDisplayItemToRemove = -1;
|
int32 FirstDisplayItemToRemove = -1;
|
||||||
|
|
Loading…
Reference in New Issue