1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-07 03:56:28 +02:00

qt4: make PLModel::getItem inline

This commit is contained in:
Jakob Leben 2009-08-19 22:00:11 +02:00
parent 5b9a24fe31
commit 1ce5fef45b
2 changed files with 2 additions and 2 deletions

View 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() );

View 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;