* Fixed bug I introduced when deleting parameters (no more crashing).
* Removed the BParameterWeb::{Start|Stop}Watching() methods again, as the same thing can be achieved using the BMediaRoster already (even though it doesn't seem to work yet). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30058 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
080385d599
commit
2ff47e1785
@ -91,11 +91,6 @@ public:
|
||||
int32 CountParameters();
|
||||
BParameter* ParameterAt(int32 index);
|
||||
|
||||
status_t StartWatching(const BMessenger& target,
|
||||
int32 notificationType);
|
||||
status_t StopWatching(const BMessenger& target,
|
||||
int32 notificationType);
|
||||
|
||||
// BFlattenable implementation
|
||||
virtual bool IsFixedSize() const;
|
||||
virtual type_code TypeCode() const;
|
||||
|
@ -420,28 +420,6 @@ BParameterWeb::ParameterAt(int32 index)
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BParameterWeb::StartWatching(const BMessenger& target, int32 notificationType)
|
||||
{
|
||||
if (BMediaRoster::CurrentRoster() == NULL)
|
||||
return B_ERROR;
|
||||
|
||||
return BMediaRoster::CurrentRoster()->StartWatching(target, fNode,
|
||||
notificationType);
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BParameterWeb::StopWatching(const BMessenger& target, int32 notificationType)
|
||||
{
|
||||
if (BMediaRoster::CurrentRoster() == NULL)
|
||||
return B_ERROR;
|
||||
|
||||
return BMediaRoster::CurrentRoster()->StopWatching(target, fNode,
|
||||
notificationType);
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
BParameterWeb::IsFixedSize() const
|
||||
{
|
||||
@ -685,12 +663,12 @@ BParameterGroup::~BParameterGroup()
|
||||
CALLED();
|
||||
|
||||
for (int i = fControls->CountItems(); i-- > 0;) {
|
||||
delete static_cast<BParameter*>(fControls->ItemAt(0));
|
||||
delete static_cast<BParameter*>(fControls->ItemAt(i));
|
||||
}
|
||||
delete fControls;
|
||||
|
||||
for (int i = fGroups->CountItems(); i-- > 0;) {
|
||||
delete static_cast<BParameterGroup*>(fGroups->ItemAt(0));
|
||||
delete static_cast<BParameterGroup*>(fGroups->ItemAt(i));
|
||||
}
|
||||
delete fGroups;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user