This commit is contained in:
Jim Saxton 2017-02-09 18:46:01 -08:00
commit 5b908f7c0e
3 changed files with 7 additions and 7 deletions

View File

@ -123,7 +123,7 @@ int32 interpreter(void *data)
char **argv;
YabInterface *yab;
BList *myData = (BList*)data;
argc = (int)myData->ItemAt(0);
argc = (int)(addr_t)myData->ItemAt(0);
argv = (char**)myData->ItemAt(1);
yab = (YabInterface*)myData->ItemAt(2);
@ -160,7 +160,7 @@ YabInterface::YabInterface(int argc, char **argv, const char* signature)
localMessage = "";
BList *myData = new BList(3);
myData->AddItem((void*)argc);
myData->AddItem((void*)(addr_t)argc);
myData->AddItem((void*)argv);
myData->AddItem((void*)this);
myThread = spawn_thread(interpreter,"YabInterpreter",B_NORMAL_PRIORITY,(void*)myData);
@ -6431,7 +6431,7 @@ void YabInterface::PrinterConfig(const char* config)
const char* YabInterface::ClipboardPaste()
{
const char *text;
int32 textlen;
ssize_t textlen;
BString returnstring;
BMessage *clip = (BMessage *)NULL;

View File

@ -38,7 +38,7 @@ void YabList::AddView(const char* id, const BView* view, int type)
{
idList->AddItem((void*)new BString(id));
viewList->AddItem((void*)view);
typeList->AddItem((void*)type);
typeList->AddItem((void*)(addr_t)type);
}
void YabList::DelView(const char* id)
@ -70,7 +70,7 @@ const void* YabList::GetView(const char* id)
const int YabList::GetType(const char* id)
{
return (int)typeList->ItemAt(ViewNum(id));
return (int)(addr_t)typeList->ItemAt(ViewNum(id));
}
const int YabList::CountItems()

View File

@ -502,7 +502,7 @@ BRow::BRow(float height)
BRow::~BRow()
{
while (true) {
BField* field = (BField*) fFields.RemoveItem(0L);
BField* field = (BField*) fFields.RemoveItem((int32)0);
if (field == 0)
break;
@ -798,7 +798,7 @@ BColumnListView::BColumnListView(const char* name, uint32 flags,
BColumnListView::~BColumnListView()
{
while (BColumn* column = (BColumn*)fColumns.RemoveItem(0L))
while (BColumn* column = (BColumn*)fColumns.RemoveItem((int32)0))
delete column;
}