From ad6c01d200e2504de1a383355bd82906fe5c06ed Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 26 Mar 2007 18:34:52 +0000 Subject: Using a QLinkedList mostly for "accessing element at index i" is not the best solution performance-wise... use a QList instead. svn path=/trunk/KDE/kdebase/apps/; revision=646813 --- src/urlnavigator.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/urlnavigator.h') diff --git a/src/urlnavigator.h b/src/urlnavigator.h index 01be439f7..5e0d7f836 100644 --- a/src/urlnavigator.h +++ b/src/urlnavigator.h @@ -24,6 +24,7 @@ #include #include +#include #include class QHBoxLayout; @@ -58,7 +59,7 @@ class ProtocolCombo; * back and forward within this history. */ -typedef QLinkedList UrlStack; +//typedef QList UrlStack; class UrlNavigator : public QWidget { @@ -111,7 +112,7 @@ public: * @param index Output parameter which indicates the current * index of the location. */ - const QLinkedList& history(int& index) const; + const QList& history(int& index) const; /** * Goes back one step in the URL history. The signals @@ -304,7 +305,7 @@ private: QHBoxLayout* m_layout; - QLinkedList m_history; + QList m_history; QToolButton* m_toggleButton; BookmarkSelector* m_bookmarkSelector; KUrlComboBox* m_pathBox; -- cgit v1.3