diff --git a/src/kits/tracker/RecentItems.cpp b/src/kits/tracker/RecentItems.cpp index ee3500332a..18c18b1db9 100644 --- a/src/kits/tracker/RecentItems.cpp +++ b/src/kits/tracker/RecentItems.cpp @@ -50,14 +50,7 @@ All rights reserved. class RecentItemsMenu : public BSlowMenu { public: RecentItemsMenu(const char* title, BMessage* openMessage, - BHandler* itemTarget, int32 maxItems) - : - BSlowMenu(title), - fTargetMesage(openMessage), - fItemTarget(itemTarget), - fMaxCount(maxItems) - { - } + BHandler* itemTarget, int32 maxItems); virtual ~RecentItemsMenu(); virtual bool StartBuildingItemList(); @@ -67,9 +60,14 @@ public: protected: virtual const BMessage* FileMessage() - { return fTargetMesage; } + { + return fTargetMesage; + } + virtual const BMessage* ContainerMessage() - { return fTargetMesage; } + { + return fTargetMesage; + } BRecentItemsList* fIterator; BMessage* fTargetMesage; @@ -121,6 +119,20 @@ public: // #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() { delete fIterator;