[vlc-commits] Qt: IMEvent: simplify using getter
Francois Cartegnie
git at videolan.org
Thu Aug 16 22:32:06 CEST 2012
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Aug 16 19:24:32 2012 +0200| [26027de9088ae4780d8f178c9f089271c71143ff] | committer: Francois Cartegnie
Qt: IMEvent: simplify using getter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=26027de9088ae4780d8f178c9f089271c71143ff
---
modules/gui/qt4/input_manager.hpp | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/modules/gui/qt4/input_manager.hpp b/modules/gui/qt4/input_manager.hpp
index f388c01..c3a6cd3 100644
--- a/modules/gui/qt4/input_manager.hpp
+++ b/modules/gui/qt4/input_manager.hpp
@@ -89,14 +89,10 @@ class IMEvent : public UniqueEvent
vlc_gc_decref( p_item );
}
input_item_t *item() const { return p_item; };
- bool itemEquals( input_item_t *p_item_ ) const
- {
- return p_item_ == p_item;
- };
virtual bool equals(UniqueEvent *e) const
{
IMEvent *ev = static_cast<IMEvent *>(e);
- return ( ev->itemEquals( p_item ) && ev->type() == type() );
+ return ( ev->item() == p_item && ev->type() == type() );
}
private:
input_item_t *p_item;
More information about the vlc-commits
mailing list