Cast B_OK to (uint32) to solve an overloading ambiguity (I don't agree
with the compiler, though :-)), I'm about to introduce. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25384 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b9c7ba4bba
commit
173dd626bf
@ -411,7 +411,7 @@ SudokuView::SaveTo(BDataIO &stream, uint32 as)
|
||||
delete view;
|
||||
bitmap->Unlock();
|
||||
}
|
||||
BMessage msg(B_OK);
|
||||
BMessage msg((uint32)B_OK);
|
||||
status = bitmap->Archive(&msg);
|
||||
if (status >= B_OK) {
|
||||
status = msg.Flatten(&stream);
|
||||
|
@ -233,7 +233,8 @@ AddPrinterDialog::BuildGUI(int stage)
|
||||
transportMenuField->SetDivider(divider);
|
||||
|
||||
// add a "OK" button, and make it default
|
||||
fOk = new BButton(r, NULL, "Add", new BMessage(B_OK), B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM);
|
||||
fOk = new BButton(r, NULL, "Add", new BMessage((uint32)B_OK),
|
||||
B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM);
|
||||
fOk->ResizeToPreferred();
|
||||
fOk->GetPreferredSize(&w, &h);
|
||||
// put the ok bottom at bottom right corner
|
||||
|
@ -689,7 +689,8 @@ MediaAddonServer::MessageReceived(BMessage *msg)
|
||||
}
|
||||
|
||||
PlayMediaFile(type, name);
|
||||
msg->SendReply(B_OK); // XXX don't know which reply is expected
|
||||
msg->SendReply((uint32)B_OK);
|
||||
// XXX don't know which reply is expected
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user