┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
authorTobias Koenig <[email protected]>2007-10-01 08:00:48 +0000
committerTobias Koenig <[email protected]>2007-10-01 08:00:48 +0000
commit29a1b2642139907ca9c448138b6aa110b64c3a03 (patch)
treef4bdec8b83b1f1d3b97630741a1b471d022aea70 /src/dolphinview.cpp
parentfd805228ae8092dc51647354d3fb83bef4197eb0 (diff)
Making KFileItemList value based.
svn path=/trunk/KDE/kdebase/apps/; revision=719514
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp8
1 files changed, 4 insertions, 4 deletions
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);