[vlc-commits] skins2: rename command to better readability
Erwan Tulou
git at videolan.org
Mon Jan 28 15:19:25 CET 2013
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Mon Jan 28 12:38:45 2013 +0100| [29c75ea7d46d6d5c699c3e338147ad9511f6d170] | committer: Erwan Tulou
skins2: rename command to better readability
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=29c75ea7d46d6d5c699c3e338147ad9511f6d170
---
modules/gui/skins2/commands/cmd_vars.cpp | 6 +++---
modules/gui/skins2/commands/cmd_vars.hpp | 6 +++---
modules/gui/skins2/src/vlcproc.cpp | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/modules/gui/skins2/commands/cmd_vars.cpp b/modules/gui/skins2/commands/cmd_vars.cpp
index 31eaa27..423be4b 100644
--- a/modules/gui/skins2/commands/cmd_vars.cpp
+++ b/modules/gui/skins2/commands/cmd_vars.cpp
@@ -28,7 +28,7 @@
#include "../vars/playtree.hpp"
-void CmdPlaytreeUpdate::execute()
+void CmdItemUpdate::execute()
{
if( !m_pItem )
return;
@@ -43,10 +43,10 @@ void CmdPlaytreeUpdate::execute()
VlcProc::instance( getIntf() )->getPlaytreeVar().onUpdateItem( id );
}
-bool CmdPlaytreeUpdate::checkRemove( CmdGeneric *pQueuedCommand ) const
+bool CmdItemUpdate::checkRemove( CmdGeneric *pQueuedCommand ) const
{
// We don't use RTTI - Use C-style cast
- CmdPlaytreeUpdate *pUpdateCommand = (CmdPlaytreeUpdate *)(pQueuedCommand);
+ CmdItemUpdate *pUpdateCommand = (CmdItemUpdate *)(pQueuedCommand);
return m_pItem == pUpdateCommand->m_pItem;
}
diff --git a/modules/gui/skins2/commands/cmd_vars.hpp b/modules/gui/skins2/commands/cmd_vars.hpp
index 2f52736..a27e7aa 100644
--- a/modules/gui/skins2/commands/cmd_vars.hpp
+++ b/modules/gui/skins2/commands/cmd_vars.hpp
@@ -39,16 +39,16 @@ class EqualizerPreamp;
class VarText;
/// Command to notify the playtree of an item update
-class CmdPlaytreeUpdate: public CmdGeneric
+class CmdItemUpdate: public CmdGeneric
{
public:
- CmdPlaytreeUpdate( intf_thread_t *pIntf, input_item_t* pItem ):
+ CmdItemUpdate( intf_thread_t *pIntf, input_item_t* pItem ):
CmdGeneric( pIntf ), m_pItem( pItem )
{
if( pItem )
vlc_gc_incref( pItem );
}
- virtual ~CmdPlaytreeUpdate()
+ virtual ~CmdItemUpdate()
{
if( m_pItem )
vlc_gc_decref( m_pItem );
diff --git a/modules/gui/skins2/src/vlcproc.cpp b/modules/gui/skins2/src/vlcproc.cpp
index 80b1395..7127c62 100644
--- a/modules/gui/skins2/src/vlcproc.cpp
+++ b/modules/gui/skins2/src/vlcproc.cpp
@@ -247,7 +247,7 @@ int VlcProc::onItemChange( vlc_object_t *pObj, const char *pVariable,
input_item_t *p_item = static_cast<input_item_t*>(newval.p_address);
// Create a playtree notify command
- CmdPlaytreeUpdate *pCmdTree = new CmdPlaytreeUpdate( pThis->getIntf(),
+ CmdItemUpdate *pCmdTree = new CmdItemUpdate( pThis->getIntf(),
p_item );
// Push the command in the asynchronous command queue
More information about the vlc-commits
mailing list