From 6cb1baaec65d2d68d029d73caca51606a72ec7a3 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Tue, 12 Oct 2004 15:35:33 +0000 Subject: [PATCH] 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 --- src/tests/kits/net/DialUpPreflet/DialUpView.cpp | 7 ++++--- src/tests/kits/net/DialUpPreflet/InterfaceUtils.cpp | 6 +++--- .../kits/net/DialUpPreflet/MessageDriverSettingsUtils.cpp | 2 +- src/tests/kits/net/DialUpPreflet/TextRequestDialog.cpp | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/tests/kits/net/DialUpPreflet/DialUpView.cpp b/src/tests/kits/net/DialUpPreflet/DialUpView.cpp index 97677a6886..a4492757b0 100644 --- a/src/tests/kits/net/DialUpPreflet/DialUpView.cpp +++ b/src/tests/kits/net/DialUpPreflet/DialUpView.cpp @@ -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); @@ -794,7 +795,7 @@ DialUpView::LoadAddons() PPPoEAddon *pppoeAddon = new PPPoEAddon(&fAddons); fAddons.AddPointer(DUN_DEVICE_ADDON_TYPE, pppoeAddon); fAddons.AddPointer(DUN_DELETE_ON_QUIT, pppoeAddon); - + // "PAP" authenticator BMessage addon; #ifdef LANG_GERMAN @@ -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) diff --git a/src/tests/kits/net/DialUpPreflet/InterfaceUtils.cpp b/src/tests/kits/net/DialUpPreflet/InterfaceUtils.cpp index aae28c6ee0..03743ecca7 100644 --- a/src/tests/kits/net/DialUpPreflet/InterfaceUtils.cpp +++ b/src/tests/kits/net/DialUpPreflet/InterfaceUtils.cpp @@ -28,12 +28,12 @@ #include #include #include -#include +#include // Contains StringItem class declaration #include 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++) { diff --git a/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.cpp b/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.cpp index 3c1724ecf8..4a27ba0739 100644 --- a/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.cpp +++ b/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.cpp @@ -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; diff --git a/src/tests/kits/net/DialUpPreflet/TextRequestDialog.cpp b/src/tests/kits/net/DialUpPreflet/TextRequestDialog.cpp index 23d8f9b06c..514e7bc8c9 100644 --- a/src/tests/kits/net/DialUpPreflet/TextRequestDialog.cpp +++ b/src/tests/kits/net/DialUpPreflet/TextRequestDialog.cpp @@ -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) {