From 81fcd720a2cc095262e52b8a40dd1472d774a415 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 13 Aug 2007 21:57:20 +0000 Subject: Use KFileItem by value rather than by pointer - in KDirModel::itemForIndex, as noted there as a TODO - in dolphin, everywhere. svn path=/trunk/KDE/kdebase/apps/; revision=699691 --- src/dolphinviewcontainer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dolphinviewcontainer.h') diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index b8715d804..95be9134c 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -97,7 +97,7 @@ public: */ void renameSelectedItems(); - KFileItem* fileItem(const QModelIndex index) const; + KFileItem fileItem(const QModelIndex& index) const; inline const DolphinStatusBar* statusBar() const; inline DolphinStatusBar* statusBar(); @@ -177,7 +177,7 @@ private slots: * should be applied to \a url. * @url URL which contains \a item. */ - void openContextMenu(KFileItem* item, const KUrl& url); + void openContextMenu(const KFileItem& item, const KUrl& url); /** * Saves the position of the contents to the -- cgit v1.3