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:
parent
5b9a24fe31
commit
1ce5fef45b
@ -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() );
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user