fix last two PVS-Studio bugs, closes #232

This commit is contained in:
jacob1 2015-02-13 21:45:22 -05:00
parent 316d0f1ace
commit 57d1b4916d
2 changed files with 1 additions and 6 deletions

View File

@ -308,7 +308,7 @@ RequestBroker::Request::~Request()
delete (*iter); delete (*iter);
iter++; iter++;
} }
Children.empty(); Children.clear();
} }
void RequestBroker::Request::Cleanup() void RequestBroker::Request::Cleanup()
{ {

View File

@ -339,11 +339,6 @@ void SearchView::NotifyShowOwnChanged(SearchModel * sender)
unpublishSelected->Enabled = true; unpublishSelected->Enabled = true;
removeSelected->Enabled = true; removeSelected->Enabled = true;
} }
else if(sender->GetShowFavourite())
{
unpublishSelected->Enabled = false;
removeSelected->Enabled = false;
}
else else
{ {
unpublishSelected->Enabled = false; unpublishSelected->Enabled = false;