From 57d1b4916dfd5d0554a1e42b6c43562d5de88d7f Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 13 Feb 2015 21:45:22 -0500 Subject: [PATCH] fix last two PVS-Studio bugs, closes #232 --- src/client/requestbroker/RequestBroker.cpp | 2 +- src/gui/search/SearchView.cpp | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/client/requestbroker/RequestBroker.cpp b/src/client/requestbroker/RequestBroker.cpp index ee0b4d40a..809dda3dd 100644 --- a/src/client/requestbroker/RequestBroker.cpp +++ b/src/client/requestbroker/RequestBroker.cpp @@ -308,7 +308,7 @@ RequestBroker::Request::~Request() delete (*iter); iter++; } - Children.empty(); + Children.clear(); } void RequestBroker::Request::Cleanup() { diff --git a/src/gui/search/SearchView.cpp b/src/gui/search/SearchView.cpp index 638d4e749..edb4c7eda 100644 --- a/src/gui/search/SearchView.cpp +++ b/src/gui/search/SearchView.cpp @@ -339,11 +339,6 @@ void SearchView::NotifyShowOwnChanged(SearchModel * sender) unpublishSelected->Enabled = true; removeSelected->Enabled = true; } - else if(sender->GetShowFavourite()) - { - unpublishSelected->Enabled = false; - removeSelected->Enabled = false; - } else { unpublishSelected->Enabled = false;