From 3d74311d4c3037d1f9860243b1be462e4ade8cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Casta=C3=B1eda?= Date: Sat, 15 Feb 2025 20:23:45 +0100 Subject: [PATCH] Adapt to new BObjectList API hrev58605 moved the "owning" parameter from the constructor to the template. --- src/AppList.cpp | 2 +- src/AppList.h | 2 +- src/DeskbarReplicant.cpp | 6 +++--- src/DeskbarReplicant.h | 2 +- src/IgnoreListView.cpp | 2 +- src/MainListView.cpp | 2 +- src/QLSettings.cpp | 2 +- src/QLSettings.h | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) 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 -typedef BObjectList AppListItems; +typedef BObjectList 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* favoriteList = _GetFavoriteList(); + BObjectList* favoriteList = _GetFavoriteList(); BPopUpMenu* menu = new BPopUpMenu("", false, false); menu->SetFont(be_plain_font); @@ -243,7 +243,7 @@ DeskbarReplicant::MouseDown(BPoint where) } -BObjectList* +BObjectList* DeskbarReplicant::_GetFavoriteList() { BPath path; @@ -253,7 +253,7 @@ DeskbarReplicant::_GetFavoriteList() path.Append("QuickLaunch_settings"); BFile file(path.Path(), B_READ_ONLY); - BObjectList* favoriteList = new BObjectList(20, true); + BObjectList* favoriteList = new BObjectList(); 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* + BObjectList* _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 list(count, true); + BObjectList list(count); for (int32 i = 0; i < count; i++) list.AddItem(dynamic_cast(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 list(count, true); + BObjectList list(count); for (int32 i = 0; i < count; i++) list.AddItem(dynamic_cast(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(20, true); + fFavoriteList = new BObjectList(); 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* fFavoriteList; + BObjectList* fFavoriteList; IgnoreListView* fIgnoreList; private: