Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Adapt to new BObjectList API #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/AppList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ AppList::AppList()
:
BLooper("app list builder"),
fInit(false),
fAppList(20, true)
fAppList()
{
Run();
}
Expand Down
2 changes: 1 addition & 1 deletion src/AppList.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <Volume.h>


typedef BObjectList<AppListItem> AppListItems;
typedef BObjectList<AppListItem, true> AppListItems;


class AppList : public BLooper {
Expand Down
6 changes: 3 additions & 3 deletions src/DeskbarReplicant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -243,7 +243,7 @@ DeskbarReplicant::MouseDown(BPoint where)
}


BObjectList<entry_ref>*
BObjectList<entry_ref, true>*
DeskbarReplicant::_GetFavoriteList()
{
BPath path;
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/DeskbarReplicant.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DeskbarReplicant : public BView {

private:
void _Init();
BObjectList<entry_ref>*
BObjectList<entry_ref, true>*
_GetFavoriteList();

BBitmap* fIcon;
Expand Down
2 changes: 1 addition & 1 deletion src/IgnoreListView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down
2 changes: 1 addition & 1 deletion src/MainListView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down
2 changes: 1 addition & 1 deletion src/QLSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/QLSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class QLSettings {
IgnoreListView* IgnoreList() { return fIgnoreList; };
void AddDefaultIgnore();

BObjectList<entry_ref>* fFavoriteList;
BObjectList<entry_ref, true>* fFavoriteList;
IgnoreListView* fIgnoreList;

private:
Expand Down