]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewcontainer.h
Use KFileItem by value rather than by pointer
[dolphin.git] / src / dolphinviewcontainer.h
index b8715d804c8c553f2354bbe45095d6c2422e8a7d..95be9134c50684b9ea223c7f7a15ca6050cc0367 100644 (file)
@@ -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