webengine/webkitutils/HistoryProvider/HistoryController.cpp
changeset 5 10e98eab6f85
parent 0 dd21522fd290
child 10 a359256acfc6
equal deleted inserted replaced
1:7c90e6132015 5:10e98eab6f85
    54 }
    54 }
    55 
    55 
    56 
    56 
    57 HistoryController::~HistoryController()
    57 HistoryController::~HistoryController()
    58 {
    58 {
    59     clearHistoryList();
    59 	m_historyStack.ResetAndDestroy();
    60 }
    60 }
    61 
    61 
    62 /**
    62 /**
    63 */
    63 */
    64 void HistoryController::insert( const TPtrC8& url, const TPtrC8& requestUrl, 
    64 void HistoryController::insert( const TPtrC8& url, const TPtrC8& requestUrl, 
   227             HistoryEntry* deadEntry = m_historyStack[i];
   227             HistoryEntry* deadEntry = m_historyStack[i];
   228             m_historyStack.Remove(i);
   228             m_historyStack.Remove(i);
   229             delete deadEntry;
   229             delete deadEntry;
   230         }
   230         }
   231     }
   231     }
       
   232 
   232     m_currentIndex  = (m_currentIndex != -1) ? 0: m_currentIndex ;
   233     m_currentIndex  = (m_currentIndex != -1) ? 0: m_currentIndex ;
   233     m_tempCurrentIndex = m_currentIndex;
   234     m_tempCurrentIndex = m_currentIndex;
   234     m_historyLoadOffset = 0;
   235     m_historyLoadOffset = 0;
   235 }
   236 }
   236 
   237