[vlmc-devel] Commands::trigger Always take "Generic*"

Yikai Lu git at videolan.org
Sat Jun 4 11:47:49 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun May 22 13:19:57 2016 +0900| [44ca7345f4e4e1aa2e3092f10e578618737f4f54] | committer: Hugo Beauzée-Luyssen

Commands::trigger Always take "Generic*"

> https://code.videolan.org/videolan/vlmc/commit/44ca7345f4e4e1aa2e3092f10e578618737f4f54
---

 src/Commands/Commands.cpp | 2 +-
 src/Commands/Commands.h   | 4 ----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/Commands/Commands.cpp b/src/Commands/Commands.cpp
index eb1f69e..4064138 100644
--- a/src/Commands/Commands.cpp
+++ b/src/Commands/Commands.cpp
@@ -32,7 +32,7 @@
 #include "Workflow/TrackWorkflow.h"
 
 void
-Commands::trigger( QUndoCommand* command )
+Commands::trigger( Generic* command )
 {
     Core::instance()->undoStack()->push( command );
 }
diff --git a/src/Commands/Commands.h b/src/Commands/Commands.h
index d27a215..a031db2 100644
--- a/src/Commands/Commands.h
+++ b/src/Commands/Commands.h
@@ -67,11 +67,7 @@ namespace Commands
             void            invalidated();
     };
 
-#ifdef WITH_GUI
-    void        trigger( QUndoCommand* command );
-#else
     void        trigger( Generic* command );
-#endif
 
     namespace   Clip
     {



More information about the Vlmc-devel mailing list