From 88832b15f1256846b1228ac411d270c6d092a50b Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 30 Aug 2014 20:04:34 +0200 Subject: [PATCH] Bug 735590 - [PATCH] Remove not needed pointer initialization in src/entry.cpp --- src/entry.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/entry.cpp b/src/entry.cpp index ee3d0ae5f24..9f863d2ef69 100644 --- a/src/entry.cpp +++ b/src/entry.cpp @@ -301,21 +301,7 @@ void Entry::createSubtreeIndex(EntryNav *nav,FileStorage *storage,FileDef *fd) void Entry::createNavigationIndex(EntryNav *rootNav,FileStorage *storage,FileDef *fd) { - //printf("createNavigationIndex(%p) sublist=%p\n",this,m_sublist); - if (m_sublist) - { - //printf("saveEntries: %d children\n",root->sublist->count()); - // store all child entries of root, but keep the navigation info (=index) - QListIterator eli(*m_sublist); - Entry *e; - for (eli.toFirst();(e=eli.current());++eli) - { - createSubtreeIndex(rootNav,storage,fd); - } - // remove all entries from root - //m_sublist->setAutoDelete(FALSE); - m_sublist->clear(); - } + createSubtreeIndex(rootNav,storage,fd); } void Entry::addSpecialListItem(const char *listName,int itemId)