videocollection/videocollectionwrapper/inc/videodatacontainer.h
changeset 52 e3cecb93e76a
parent 15 cf5481c2bc0b
child 58 d2b028fd1f7d
--- a/videocollection/videocollectionwrapper/inc/videodatacontainer.h	Tue Jul 06 14:17:50 2010 +0300
+++ b/videocollection/videocollectionwrapper/inc/videodatacontainer.h	Wed Aug 18 09:50:14 2010 +0300
@@ -72,7 +72,7 @@
      *                   object is not found from wanted index
      * 
      */
-    CMPXMedia* fromIndex(int index) const;
+    CMPXMedia* fromIndex(const int &index) const;
   
     /**
      * Returns an index of id.
@@ -81,7 +81,7 @@
      * 
      * @return int index of item or -1 if item with provided id is not found
      */
-    int indexOfId(const TMPXItemId &id) const;
+    const int& indexOfId(const TMPXItemId &id) const;
 
     /**
      * Returns id of item from provided index
@@ -90,7 +90,7 @@
      * 
      * @return id of item or invalid TMPXItemId if item is not found from provided index
      */
-    TMPXItemId idFromIndex(int index) const;
+    const TMPXItemId& idFromIndex(const int &index) const;
 
     /**
      * returns count of items
@@ -111,7 +111,7 @@
      * @param inteIndex index of item
      * @return TMPXItemId id of the item marked as removed
      */
-    TMPXItemId markItemRemoved(const int &itemIndex);
+    const TMPXItemId markItemRemoved(const int &itemIndex);
     
     /**
      * Method removes provided items from mRemovedMedia
@@ -136,7 +136,7 @@
      * 
      * @param itemId id of item to be returned
      */
-    CMPXMedia* getRemovedMedia(TMPXItemId itemId);
+    CMPXMedia* getRemovedMedia(TMPXItemId &itemId);
 
 private:
     
@@ -148,7 +148,7 @@
      * 
      * @param fromindex - index from where to start decreasing  
      */
-    void decIndexesAfter(int fromIndex);
+    void decIndexesAfter(const int &fromIndex);
     
 private: // data