[vlc-commits] commit: skins2: cosmetic (Erwan Tulou )

git at videolan.org git at videolan.org
Sun Jan 16 23:05:49 CET 2011


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Sat Jan 15 18:14:49 2011 +0100| [7a851c177afae8aa2cc9077e575dc07a39050613] | committer: Erwan Tulou 

skins2: cosmetic

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7a851c177afae8aa2cc9077e575dc07a39050613
---

 modules/gui/skins2/src/vlcproc.cpp |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/modules/gui/skins2/src/vlcproc.cpp b/modules/gui/skins2/src/vlcproc.cpp
index 5a40e38..6cc0105 100644
--- a/modules/gui/skins2/src/vlcproc.cpp
+++ b/modules/gui/skins2/src/vlcproc.cpp
@@ -290,15 +290,12 @@ int VlcProc::onItemAppend( vlc_object_t *pObj, const char *pVariable,
     VlcProc *pThis = (VlcProc*)pParam;
 
     playlist_add_t *p_add = static_cast<playlist_add_t*>(newVal.p_address);
-
-    CmdGenericPtr ptrTree;
-    CmdPlaytreeAppend *pCmdTree = new CmdPlaytreeAppend( pThis->getIntf(),
-                                                             p_add );
-    ptrTree = CmdGenericPtr( pCmdTree );
+    CmdPlaytreeAppend *pCmdTree =
+        new CmdPlaytreeAppend( pThis->getIntf(), p_add );
 
     // Push the command in the asynchronous command queue
     AsyncQueue *pQueue = AsyncQueue::instance( pThis->getIntf() );
-    pQueue->push( ptrTree , false );
+    pQueue->push( CmdGenericPtr( pCmdTree ), false );
 
     return VLC_SUCCESS;
 }
@@ -310,15 +307,12 @@ int VlcProc::onItemDelete( vlc_object_t *pObj, const char *pVariable,
     VlcProc *pThis = (VlcProc*)pParam;
 
     int i_id = newVal.i_int;
-
-    CmdGenericPtr ptrTree;
-    CmdPlaytreeDelete *pCmdTree = new CmdPlaytreeDelete( pThis->getIntf(),
-                                                         i_id);
-    ptrTree = CmdGenericPtr( pCmdTree );
+    CmdPlaytreeDelete *pCmdTree =
+        new CmdPlaytreeDelete( pThis->getIntf(), i_id);
 
     // Push the command in the asynchronous command queue
     AsyncQueue *pQueue = AsyncQueue::instance( pThis->getIntf() );
-    pQueue->push( ptrTree , false );
+    pQueue->push( CmdGenericPtr( pCmdTree ), false );
 
     return VLC_SUCCESS;
 }



More information about the vlc-commits mailing list