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:
Philippe Houdoin 2004-10-12 15:35:33 +00:00
parent 1445ff4a06
commit 6cb1baaec6
4 changed files with 9 additions and 8 deletions

View File

@ -786,6 +786,7 @@ DialUpView::LoadAddons()
GeneralAddon *fGeneralAddon = new GeneralAddon(&fAddons); GeneralAddon *fGeneralAddon = new GeneralAddon(&fAddons);
fAddons.AddPointer(DUN_TAB_ADDON_TYPE, fGeneralAddon); fAddons.AddPointer(DUN_TAB_ADDON_TYPE, fGeneralAddon);
fAddons.AddPointer(DUN_DELETE_ON_QUIT, fGeneralAddon); fAddons.AddPointer(DUN_DELETE_ON_QUIT, fGeneralAddon);
// "IPCP" protocol // "IPCP" protocol
IPCPAddon *ipcpAddon = new IPCPAddon(&fAddons); IPCPAddon *ipcpAddon = new IPCPAddon(&fAddons);
fAddons.AddPointer(DUN_TAB_ADDON_TYPE, ipcpAddon); fAddons.AddPointer(DUN_TAB_ADDON_TYPE, ipcpAddon);
@ -794,7 +795,7 @@ DialUpView::LoadAddons()
PPPoEAddon *pppoeAddon = new PPPoEAddon(&fAddons); PPPoEAddon *pppoeAddon = new PPPoEAddon(&fAddons);
fAddons.AddPointer(DUN_DEVICE_ADDON_TYPE, pppoeAddon); fAddons.AddPointer(DUN_DEVICE_ADDON_TYPE, pppoeAddon);
fAddons.AddPointer(DUN_DELETE_ON_QUIT, pppoeAddon); fAddons.AddPointer(DUN_DELETE_ON_QUIT, pppoeAddon);
// "PAP" authenticator // "PAP" authenticator
BMessage addon; BMessage addon;
#ifdef LANG_GERMAN #ifdef LANG_GERMAN
@ -813,7 +814,7 @@ DialUpView::LoadAddons()
void void
DialUpView::AddInterface(const char *name, bool isNew = false) DialUpView::AddInterface(const char *name, bool isNew)
{ {
if(fInterfaceMenu->FindItem(name)) { if(fInterfaceMenu->FindItem(name)) {
(new BAlert(kErrorTitle, kErrorInterfaceExists, kLabelOK, (new BAlert(kErrorTitle, kErrorInterfaceExists, kLabelOK,
@ -835,7 +836,7 @@ DialUpView::AddInterface(const char *name, bool isNew = false)
void void
DialUpView::SelectInterface(int32 index, bool isNew = false) DialUpView::SelectInterface(int32 index, bool isNew)
{ {
BMenuItem *item = fInterfaceMenu->FindMarked(); BMenuItem *item = fInterfaceMenu->FindMarked();
if(fCurrentItem && item == fCurrentItem) if(fCurrentItem && item == fCurrentItem)

View File

@ -28,12 +28,12 @@
#include <MenuItem.h> #include <MenuItem.h>
#include <Screen.h> #include <Screen.h>
#include <String.h> #include <String.h>
#include <StringItem.h> #include <ListItem.h> // Contains StringItem class declaration
#include <Window.h> #include <Window.h>
BPoint BPoint
center_on_screen(BRect rect, BWindow *window = NULL) center_on_screen(BRect rect, BWindow *window)
{ {
BRect screenFrame = (BScreen(window).Frame()); BRect screenFrame = (BScreen(window).Frame());
BPoint point((screenFrame.Width() - rect.Width()) / 2.0, BPoint point((screenFrame.Width() - rect.Width()) / 2.0,
@ -46,7 +46,7 @@ center_on_screen(BRect rect, BWindow *window = NULL)
int32 int32
FindNextMenuInsertionIndex(BMenu *menu, const char *name, int32 index = 0) FindNextMenuInsertionIndex(BMenu *menu, const char *name, int32 index)
{ {
BMenuItem *item; BMenuItem *item;
for(; index < menu->CountItems(); index++) { for(; index < menu->CountItems(); index++) {

View File

@ -36,7 +36,7 @@ static bool AddParameters(const BMessage& message, driver_settings *to);
bool bool
FindMessageParameter(const char *name, const BMessage& message, BMessage *save, 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 // XXX: this should be removed when we can replace BMessage with something better
BString string; BString string;

View File

@ -44,7 +44,7 @@ static const char *kLabelCancel = "Cancel";
TextRequestDialog::TextRequestDialog(const char *title, const char *information, 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), : BWindow(kWindowRect, title, B_MODAL_WINDOW, B_NOT_RESIZABLE | B_NOT_CLOSABLE, 0),
fInvoker(NULL) fInvoker(NULL)
{ {