Commit 1ce5fef4 authored by Jakob Leben's avatar Jakob Leben

qt4: make PLModel::getItem inline

parent 5b9a24fe
...@@ -611,7 +611,7 @@ PLItem * PLModel::FindInner( PLItem *root, int i_id, bool b_input ) ...@@ -611,7 +611,7 @@ PLItem * PLModel::FindInner( PLItem *root, int i_id, bool b_input )
#undef CACHE #undef CACHE
#undef ICACHE #undef ICACHE
PLItem *PLModel::getItem( const QModelIndex& index ) const PLItem *PLModel::getItem( QModelIndex index )
{ {
assert( index.isValid() ); assert( index.isValid() );
return static_cast<PLItem*>( index.internalPointer() ); return static_cast<PLItem*>( index.internalPointer() );
......
...@@ -166,7 +166,7 @@ private: ...@@ -166,7 +166,7 @@ private:
PLItem *FindById( PLItem *, int ); PLItem *FindById( PLItem *, int );
PLItem *FindByInput( PLItem *, int ); PLItem *FindByInput( PLItem *, int );
PLItem *FindInner( PLItem *, int , bool ); PLItem *FindInner( PLItem *, int , bool );
PLItem *getItem( const QModelIndex& index ) const; static inline PLItem *getItem( QModelIndex index );
int metaColumn ( int column ) const; int metaColumn ( int column ) const;
PLItem *p_cached_item; PLItem *p_cached_item;
PLItem *p_cached_item_bi; PLItem *p_cached_item_bi;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment