diff --git a/src/AppList.cpp b/src/AppList.cpp index f824195..c7ff897 100644 --- a/src/AppList.cpp +++ b/src/AppList.cpp @@ -24,7 +24,7 @@ AppList::AppList() : BLooper("app list builder"), fInit(false), - fAppList(20, true) + fAppList() { Run(); } diff --git a/src/AppList.h b/src/AppList.h index fab1de5..bd17e97 100644 --- a/src/AppList.h +++ b/src/AppList.h @@ -14,7 +14,7 @@ #include <Volume.h> -typedef BObjectList<AppListItem> AppListItems; +typedef BObjectList<AppListItem, true> AppListItems; class AppList : public BLooper { diff --git a/src/DeskbarReplicant.cpp b/src/DeskbarReplicant.cpp index f6d9946..7b59994 100644 --- a/src/DeskbarReplicant.cpp +++ b/src/DeskbarReplicant.cpp @@ -209,7 +209,7 @@ DeskbarReplicant::MouseDown(BPoint where) GetMouse(&point, &buttons); if (buttons & B_SECONDARY_MOUSE_BUTTON) { - BObjectList<entry_ref>* favoriteList = _GetFavoriteList(); + BObjectList<entry_ref, true>* favoriteList = _GetFavoriteList(); BPopUpMenu* menu = new BPopUpMenu("", false, false); menu->SetFont(be_plain_font); @@ -243,7 +243,7 @@ DeskbarReplicant::MouseDown(BPoint where) } -BObjectList<entry_ref>* +BObjectList<entry_ref, true>* DeskbarReplicant::_GetFavoriteList() { BPath path; @@ -253,7 +253,7 @@ DeskbarReplicant::_GetFavoriteList() path.Append("QuickLaunch_settings"); BFile file(path.Path(), B_READ_ONLY); - BObjectList<entry_ref>* favoriteList = new BObjectList<entry_ref>(20, true); + BObjectList<entry_ref, true>* favoriteList = new BObjectList<entry_ref, true>(); BMessage settings; if (file.InitCheck() == B_OK && settings.Unflatten(&file) == B_OK) { diff --git a/src/DeskbarReplicant.h b/src/DeskbarReplicant.h index 9be35ae..42b49bc 100644 --- a/src/DeskbarReplicant.h +++ b/src/DeskbarReplicant.h @@ -33,7 +33,7 @@ class DeskbarReplicant : public BView { private: void _Init(); - BObjectList<entry_ref>* + BObjectList<entry_ref, true>* _GetFavoriteList(); BBitmap* fIcon; diff --git a/src/IgnoreListView.cpp b/src/IgnoreListView.cpp index 8bd6470..0b8e428 100644 --- a/src/IgnoreListView.cpp +++ b/src/IgnoreListView.cpp @@ -148,7 +148,7 @@ IgnoreListView::MakeEmpty() // keeping track of the items. int32 count = CountItems(); - BObjectList<IgnoreListItem> list(count, true); + BObjectList<IgnoreListItem, true> list(count); for (int32 i = 0; i < count; i++) list.AddItem(dynamic_cast<IgnoreListItem*>(ItemAt(i))); diff --git a/src/MainListView.cpp b/src/MainListView.cpp index aa9adcd..23fc6db 100644 --- a/src/MainListView.cpp +++ b/src/MainListView.cpp @@ -393,7 +393,7 @@ MainListView::MakeEmpty() // keeping track of the items. int32 count = CountItems(); - BObjectList<MainListItem> list(count, true); + BObjectList<MainListItem, true> list(count); for (int32 i = 0; i < count; i++) list.AddItem(dynamic_cast<MainListItem*>(ItemAt(i))); diff --git a/src/QLSettings.cpp b/src/QLSettings.cpp index b233b88..afc4998 100644 --- a/src/QLSettings.cpp +++ b/src/QLSettings.cpp @@ -59,7 +59,7 @@ QLSettings::QLSettings() fSortFavorites = false; fSearchTerm = ""; fShowIgnore = fTempApplyIgnore = true; - fFavoriteList = new BObjectList<entry_ref>(20, true); + fFavoriteList = new BObjectList<entry_ref, true>(); fIgnoreList = new IgnoreListView(); path.Append("QuickLaunch_settings"); diff --git a/src/QLSettings.h b/src/QLSettings.h index ecc4e9d..1083d9a 100644 --- a/src/QLSettings.h +++ b/src/QLSettings.h @@ -66,7 +66,7 @@ class QLSettings { IgnoreListView* IgnoreList() { return fIgnoreList; }; void AddDefaultIgnore(); - BObjectList<entry_ref>* fFavoriteList; + BObjectList<entry_ref, true>* fFavoriteList; IgnoreListView* fIgnoreList; private: