[vlc-devel] commit: qt4: make PLModel::getItem inline (Jakob Leben )
git version control
git at videolan.org
Wed Aug 19 22:01:25 CEST 2009
vlc | branch: master | Jakob Leben <jleben at videolan.org> | Wed Aug 19 22:00:11 2009 +0200| [1ce5fef45bf75d0a486f115780d5113a95de020f] | committer: Jakob Leben
qt4: make PLModel::getItem inline
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ce5fef45bf75d0a486f115780d5113a95de020f
---
.../gui/qt4/components/playlist/playlist_model.cpp | 2 +-
.../gui/qt4/components/playlist/playlist_model.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 01d3c28..0134028 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -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() );
diff --git a/modules/gui/qt4/components/playlist/playlist_model.hpp b/modules/gui/qt4/components/playlist/playlist_model.hpp
index a5d757d..dcf07d8 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.hpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.hpp
@@ -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;
More information about the vlc-devel
mailing list