qt4: make PLModel::getItem inline
authorJakob Leben <jleben@videolan.org>
Wed, 19 Aug 2009 20:00:11 +0000 (22:00 +0200)
committerJakob Leben <jleben@videolan.org>
Wed, 19 Aug 2009 20:00:11 +0000 (22:00 +0200)
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.hpp

index 01d3c28..0134028 100644 (file)
@@ -611,7 +611,7 @@ PLItem * PLModel::FindInner( PLItem *root, int i_id, bool b_input )
 #undef CACHE
 #undef ICACHE
 
-PLItem *PLModel::getItem( const QModelIndex& index ) const
+PLItem *PLModel::getItem( QModelIndex index )
 {
     assert( index.isValid() );
     return static_cast<PLItem*>( index.internalPointer() );
index a5d757d..dcf07d8 100644 (file)
@@ -166,7 +166,7 @@ private:
     PLItem *FindById( PLItem *, int );
     PLItem *FindByInput( PLItem *, int );
     PLItem *FindInner( PLItem *, int , bool );
-    PLItem *getItem( const QModelIndex& index ) const;
+    static inline PLItem *getItem( QModelIndex index );
     int metaColumn ( int column ) const;
     PLItem *p_cached_item;
     PLItem *p_cached_item_bi;