Fixed warning about default argument value in implementation.
StringItem.h is not BeOS R5's source compatible, now include ListItem.h instead, which is. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9300 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1445ff4a06
commit
6cb1baaec6
@ -786,6 +786,7 @@ DialUpView::LoadAddons()
|
||||
GeneralAddon *fGeneralAddon = new GeneralAddon(&fAddons);
|
||||
fAddons.AddPointer(DUN_TAB_ADDON_TYPE, fGeneralAddon);
|
||||
fAddons.AddPointer(DUN_DELETE_ON_QUIT, fGeneralAddon);
|
||||
|
||||
// "IPCP" protocol
|
||||
IPCPAddon *ipcpAddon = new IPCPAddon(&fAddons);
|
||||
fAddons.AddPointer(DUN_TAB_ADDON_TYPE, ipcpAddon);
|
||||
@ -813,7 +814,7 @@ DialUpView::LoadAddons()
|
||||
|
||||
|
||||
void
|
||||
DialUpView::AddInterface(const char *name, bool isNew = false)
|
||||
DialUpView::AddInterface(const char *name, bool isNew)
|
||||
{
|
||||
if(fInterfaceMenu->FindItem(name)) {
|
||||
(new BAlert(kErrorTitle, kErrorInterfaceExists, kLabelOK,
|
||||
@ -835,7 +836,7 @@ DialUpView::AddInterface(const char *name, bool isNew = false)
|
||||
|
||||
|
||||
void
|
||||
DialUpView::SelectInterface(int32 index, bool isNew = false)
|
||||
DialUpView::SelectInterface(int32 index, bool isNew)
|
||||
{
|
||||
BMenuItem *item = fInterfaceMenu->FindMarked();
|
||||
if(fCurrentItem && item == fCurrentItem)
|
||||
|
@ -28,12 +28,12 @@
|
||||
#include <MenuItem.h>
|
||||
#include <Screen.h>
|
||||
#include <String.h>
|
||||
#include <StringItem.h>
|
||||
#include <ListItem.h> // Contains StringItem class declaration
|
||||
#include <Window.h>
|
||||
|
||||
|
||||
BPoint
|
||||
center_on_screen(BRect rect, BWindow *window = NULL)
|
||||
center_on_screen(BRect rect, BWindow *window)
|
||||
{
|
||||
BRect screenFrame = (BScreen(window).Frame());
|
||||
BPoint point((screenFrame.Width() - rect.Width()) / 2.0,
|
||||
@ -46,7 +46,7 @@ center_on_screen(BRect rect, BWindow *window = NULL)
|
||||
|
||||
|
||||
int32
|
||||
FindNextMenuInsertionIndex(BMenu *menu, const char *name, int32 index = 0)
|
||||
FindNextMenuInsertionIndex(BMenu *menu, const char *name, int32 index)
|
||||
{
|
||||
BMenuItem *item;
|
||||
for(; index < menu->CountItems(); index++) {
|
||||
|
@ -36,7 +36,7 @@ static bool AddParameters(const BMessage& message, driver_settings *to);
|
||||
|
||||
bool
|
||||
FindMessageParameter(const char *name, const BMessage& message, BMessage *save,
|
||||
int32 *startIndex = NULL)
|
||||
int32 *startIndex)
|
||||
{
|
||||
// XXX: this should be removed when we can replace BMessage with something better
|
||||
BString string;
|
||||
|
@ -44,7 +44,7 @@ static const char *kLabelCancel = "Cancel";
|
||||
|
||||
|
||||
TextRequestDialog::TextRequestDialog(const char *title, const char *information,
|
||||
const char *request, const char *text = NULL)
|
||||
const char *request, const char *text)
|
||||
: BWindow(kWindowRect, title, B_MODAL_WINDOW, B_NOT_RESIZABLE | B_NOT_CLOSABLE, 0),
|
||||
fInvoker(NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user