From 4b078ea6cbaf2ada4e2b354c4d36f4ded04fa35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 5 Oct 2004 18:42:42 +0000 Subject: [PATCH] fixed warnings git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9211 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/prefs/mail/ConfigViews.cpp | 3 +-- src/prefs/mail/ConfigWindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/prefs/mail/ConfigViews.cpp b/src/prefs/mail/ConfigViews.cpp index 2a81df70e8..b70acfd8b0 100644 --- a/src/prefs/mail/ConfigViews.cpp +++ b/src/prefs/mail/ConfigViews.cpp @@ -50,7 +50,6 @@ AccountConfigView::AccountConfigView(BRect rect,Account *account) fAccount(account) { SetLabel(MDR_DIALECT_CHOICE ("Account Configuration","アカウント設定")); - BMailChain *settings = account->Inbound() ? account->Inbound() : account->Outbound(); rect = Bounds().InsetByCopy(8,8); rect.top += 10; @@ -538,7 +537,7 @@ FiltersConfigView::FiltersConfigView(BRect rect,Account *account) BMenuItem *item; BMessage *msg; - if (fChain = fAccount->Inbound()) + if ((fChain = fAccount->Inbound())) { menu->AddItem(item = new BMenuItem(MDR_DIALECT_CHOICE ("Incoming E-mail Filters","受信フィルタ"),msg = new BMessage(kMsgChainSelected))); msg->AddPointer("chain",fChain); diff --git a/src/prefs/mail/ConfigWindow.cpp b/src/prefs/mail/ConfigWindow.cpp index 502ab21899..30207f1fa6 100644 --- a/src/prefs/mail/ConfigWindow.cpp +++ b/src/prefs/mail/ConfigWindow.cpp @@ -538,7 +538,7 @@ ConfigWindow::MakeHowToView() { // copy and enlarge a 32x32 8-bit bitmap char *bits = (char *)bitmap->Bits(); - for (int32 i = 0, j = -64;i < length;i++) + for (int32 i=0, j=-64; i<(int32)length; i++) { if ((i % 32) == 0) j += 64; @@ -816,7 +816,7 @@ ConfigWindow::SetToGeneralSettings(BMailSettings *settings) item->SetMarked(true); if (BMenuItem *item = fStatusLookField->Menu()->ItemAt(settings->StatusWindowLook())) item->SetMarked(true); - if (BMenuItem *item = fStatusWorkspaceField->Menu()->ItemAt(settings->StatusWindowWorkspaces() != B_ALL_WORKSPACES ? 0 : 1)) + if (BMenuItem *item = fStatusWorkspaceField->Menu()->ItemAt((uint32)settings->StatusWindowWorkspaces() != B_ALL_WORKSPACES ? 0 : 1)) item->SetMarked(true); BMessenger messenger("application/x-vnd.Be-POST");