]> git.sesse.net Git - vlc/commitdiff
Qt: constify arguments
authorJakob Leben <jleben@videolan.org>
Mon, 25 Jan 2010 01:18:26 +0000 (02:18 +0100)
committerJakob Leben <jleben@videolan.org>
Mon, 25 Jan 2010 01:20:59 +0000 (02:20 +0100)
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.hpp

index eb695f3ad66f6c8df0b0c9b8cf3383d4ce98a05c..ae67d693476d3fcbac28373e9e5781111a38fd43 100644 (file)
@@ -875,7 +875,7 @@ void PLModel::search( const QString& search_text )
 }
 
 /*********** Popup *********/
-void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
+void PLModel::popup( const QModelIndex & index, const QPoint &point, const QModelIndexList &list )
 {
     int i_id = index.isValid() ? itemId( index ) : rootItem->i_id;
 
index def5ce6e9085a7b5bb96d9eb2833b07c0b2c4706..64ecae5e960fe6527a90e4d767e1fc904ea5bb2a 100644 (file)
@@ -87,7 +87,7 @@ public:
     int itemId( const QModelIndex &index ) const;
 
     /* Actions */
-    void popup( QModelIndex & index, QPoint &point, QModelIndexList list );
+    void popup( const QModelIndex & index, const QPoint &point, const QModelIndexList &list );
     void doDelete( QModelIndexList selected );
     void search( const QString& search_text );
     void sort( int column, Qt::SortOrder order );