From 29a1b2642139907ca9c448138b6aa110b64c3a03 Mon Sep 17 00:00:00 2001 From: Tobias Koenig Date: Mon, 1 Oct 2007 08:00:48 +0000 Subject: Making KFileItemList value based. svn path=/trunk/KDE/kdebase/apps/; revision=719514 --- src/dolphinview.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dolphinview.cpp') diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index edecf199a..2c02820c4 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -900,9 +900,9 @@ void DolphinView::applyCutItemEffect() KFileItemList::const_iterator it = items.begin(); const KFileItemList::const_iterator end = items.end(); while (it != end) { - KFileItem* item = *it; - if (isCutItem(*item)) { - const QModelIndex index = m_dolphinModel->indexForItem(*item); + const KFileItem item = *it; + if (isCutItem(item)) { + const QModelIndex index = m_dolphinModel->indexForItem(item); // Huh? the item is already known //const KFileItem item = m_dolphinModel->itemForIndex(index); const QVariant value = m_dolphinModel->data(index, Qt::DecorationRole); @@ -913,7 +913,7 @@ void DolphinView::applyCutItemEffect() // remember current pixmap for the item to be able // to restore it when other items get cut CutItem cutItem; - cutItem.url = item->url(); + cutItem.url = item.url(); cutItem.pixmap = pixmap; m_cutItemsCache.append(cutItem); -- cgit v1.3