From dd8d0d1f5ab0fe15180f0f7619cadb7dfb0a4475 Mon Sep 17 00:00:00 2001 From: plfiorini Date: Mon, 10 May 2010 21:54:28 +0000 Subject: [PATCH] Gcc4 build fixes. --- application/preferences/AccountDialog.cpp | 2 +- libs/libinterface/BitmapUtils.cpp | 2 ++ libs/libsupport/List.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/application/preferences/AccountDialog.cpp b/application/preferences/AccountDialog.cpp index 07d9ae7..377d52a 100644 --- a/application/preferences/AccountDialog.cpp +++ b/application/preferences/AccountDialog.cpp @@ -24,7 +24,7 @@ const uint32 kOK = 'SAVE'; AccountDialog::AccountDialog(const char* title, CayaProtocol* cayap, - const char* account = NULL) + const char* account) : BWindow(BRect(0, 0, 1, 1), title, B_MODAL_WINDOW, B_NOT_RESIZABLE | B_AUTO_UPDATE_SIZE_LIMITS | B_CLOSE_ON_ESCAPE) { diff --git a/libs/libinterface/BitmapUtils.cpp b/libs/libinterface/BitmapUtils.cpp index 5c4a6d5..ebb0546 100644 --- a/libs/libinterface/BitmapUtils.cpp +++ b/libs/libinterface/BitmapUtils.cpp @@ -6,6 +6,8 @@ * Pier Luigi Fiorini, pierluigi.fiorini@gmail.com */ +#include + #include #include diff --git a/libs/libsupport/List.h b/libs/libsupport/List.h index 5b6a4b0..5682db5 100644 --- a/libs/libsupport/List.h +++ b/libs/libsupport/List.h @@ -43,7 +43,7 @@ void List::AddItem(T type) template void List::RemoveItemAt(uint32 position) { - fIter i = fMap.begin(); + fIter i = fList.begin(); std::advance(i, position); fList.erase(i); }