Tracker: init default member values, CID 609845
This commit is contained in:
parent
23d59b8742
commit
d6c4e7a6be
@ -50,14 +50,7 @@ All rights reserved.
|
|||||||
class RecentItemsMenu : public BSlowMenu {
|
class RecentItemsMenu : public BSlowMenu {
|
||||||
public:
|
public:
|
||||||
RecentItemsMenu(const char* title, BMessage* openMessage,
|
RecentItemsMenu(const char* title, BMessage* openMessage,
|
||||||
BHandler* itemTarget, int32 maxItems)
|
BHandler* itemTarget, int32 maxItems);
|
||||||
:
|
|
||||||
BSlowMenu(title),
|
|
||||||
fTargetMesage(openMessage),
|
|
||||||
fItemTarget(itemTarget),
|
|
||||||
fMaxCount(maxItems)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
virtual ~RecentItemsMenu();
|
virtual ~RecentItemsMenu();
|
||||||
|
|
||||||
virtual bool StartBuildingItemList();
|
virtual bool StartBuildingItemList();
|
||||||
@ -67,9 +60,14 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual const BMessage* FileMessage()
|
virtual const BMessage* FileMessage()
|
||||||
{ return fTargetMesage; }
|
{
|
||||||
|
return fTargetMesage;
|
||||||
|
}
|
||||||
|
|
||||||
virtual const BMessage* ContainerMessage()
|
virtual const BMessage* ContainerMessage()
|
||||||
{ return fTargetMesage; }
|
{
|
||||||
|
return fTargetMesage;
|
||||||
|
}
|
||||||
|
|
||||||
BRecentItemsList* fIterator;
|
BRecentItemsList* fIterator;
|
||||||
BMessage* fTargetMesage;
|
BMessage* fTargetMesage;
|
||||||
@ -121,6 +119,20 @@ public:
|
|||||||
// #pragma mark - RecentItemsMenu
|
// #pragma mark - RecentItemsMenu
|
||||||
|
|
||||||
|
|
||||||
|
RecentItemsMenu::RecentItemsMenu(const char* title, BMessage* openMessage,
|
||||||
|
BHandler* itemTarget, int32 maxItems)
|
||||||
|
:
|
||||||
|
BSlowMenu(title),
|
||||||
|
fIterator(NULL),
|
||||||
|
fTargetMesage(openMessage),
|
||||||
|
fItemTarget(itemTarget),
|
||||||
|
fCount(-1),
|
||||||
|
fSanityCount(-1),
|
||||||
|
fMaxCount(maxItems)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
RecentItemsMenu::~RecentItemsMenu()
|
RecentItemsMenu::~RecentItemsMenu()
|
||||||
{
|
{
|
||||||
delete fIterator;
|
delete fIterator;
|
||||||
|
Loading…
Reference in New Issue
Block a user