mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
*neutrino upnpbrowser: remove redundant null pointers
redundant condition (style) git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1746 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -598,23 +598,18 @@ bool CUpnpBrowserGui::selectItem(std::string id)
|
|||||||
bool rchanged = true;
|
bool rchanged = true;
|
||||||
neutrino_msg_t msg;
|
neutrino_msg_t msg;
|
||||||
neutrino_msg_data_t data;
|
neutrino_msg_data_t data;
|
||||||
std::vector<UPnPEntry> *entries;
|
std::vector<UPnPEntry> *entries = NULL;
|
||||||
unsigned int index, selected, dirnum;
|
unsigned int index, selected, dirnum;
|
||||||
|
|
||||||
index=0;
|
index=0;
|
||||||
selected=0;
|
selected=0;
|
||||||
dirnum=0;
|
dirnum=0;
|
||||||
entries=NULL;
|
|
||||||
|
|
||||||
while (loop)
|
while (loop)
|
||||||
{
|
{
|
||||||
updateTimes();
|
updateTimes();
|
||||||
if (rchanged)
|
if (rchanged)
|
||||||
{
|
{
|
||||||
if (entries)
|
|
||||||
delete entries;
|
|
||||||
entries=NULL;
|
|
||||||
|
|
||||||
std::list<UPnPAttribute>attribs;
|
std::list<UPnPAttribute>attribs;
|
||||||
std::list<UPnPAttribute>results;
|
std::list<UPnPAttribute>results;
|
||||||
std::list<UPnPAttribute>::iterator i;
|
std::list<UPnPAttribute>::iterator i;
|
||||||
|
Reference in New Issue
Block a user