gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/server/swf ASHandlers.cpp ASHandlers.h


From: Vitaly Alexeev
Subject: [Gnash-commit] gnash/server/swf ASHandlers.cpp ASHandlers.h
Date: Mon, 24 Jul 2006 14:53:25 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Vitaly Alexeev <alexeev>        06/07/24 14:53:25

Modified files:
        server/swf     : ASHandlers.cpp ASHandlers.h 

Log message:
        small optimization is done

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/ASHandlers.cpp?cvsroot=gnash&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/ASHandlers.h?cvsroot=gnash&r1=1.4&r2=1.5

Patches:
Index: ASHandlers.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/swf/ASHandlers.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- ASHandlers.cpp      17 Jul 2006 01:22:32 -0000      1.36
+++ ASHandlers.cpp      24 Jul 2006 14:53:25 -0000      1.37
@@ -469,14 +469,14 @@
        return *_instance;
 }
 
-bool
+// Vitaly: the result is not used anywhere
+void
 SWFHandlers::execute(action_type type, ActionExec& thread) const
 {
 //    GNASH_REPORT_FUNCTION;
-
-       if ( _handlers[type].getName() == "unsupported" ) return false;
+//     It is very heavy operation
+//     if ( _handlers[type].getName() == "unsupported" ) return false;
        _handlers[type].execute(thread);
-       return true;
 }
 
 void

Index: ASHandlers.h
===================================================================
RCS file: /sources/gnash/gnash/server/swf/ASHandlers.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ASHandlers.h        30 Jun 2006 20:07:44 -0000      1.4
+++ ASHandlers.h        24 Jul 2006 14:53:25 -0000      1.5
@@ -121,7 +121,7 @@
        static const SWFHandlers& instance();
 
        /// Execute the action identified by 'type' action type
-       bool execute(action_type type, ActionExec& thread) const;
+       void execute(action_type type, ActionExec& thread) const;
 
        void toggleDebug(bool state) { _debug = state; }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]