gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog server/as_object.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/as_object.h
Date: Fri, 02 Feb 2007 14:11:53 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/02/02 14:11:52

Modified files:
        .              : ChangeLog 
        server         : as_object.h 

Log message:
                * server/as_object.h (set_prototype): made public, as any
                  protection is useless as long as set_member("__proto__")
                  still changes the prototype.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2234&r2=1.2235
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_object.h?cvsroot=gnash&r1=1.34&r2=1.35

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2234
retrieving revision 1.2235
diff -u -b -r1.2234 -r1.2235
--- ChangeLog   2 Feb 2007 14:05:52 -0000       1.2234
+++ ChangeLog   2 Feb 2007 14:11:52 -0000       1.2235
@@ -1,3 +1,9 @@
+2007-02-02 Sandro Santilli <address@hidden>
+
+       * server/as_object.h (set_prototype): made public, as any
+         protection is useless as long as set_member("__proto__")
+         still changes the prototype.
+
 2007-02-02 Martin Guy <address@hidden>
 
        * server/Date.cpp: Eliminate Date class; port to date_as_object

Index: server/as_object.h
===================================================================
RCS file: /sources/gnash/gnash/server/as_object.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- server/as_object.h  1 Feb 2007 13:40:07 -0000       1.34
+++ server/as_object.h  2 Feb 2007 14:11:52 -0000       1.35
@@ -335,6 +335,15 @@
                return m_prototype.get();
        }
        
+       /// Set this object's '__proto__' member
+       //
+       /// There is no point to make this function
+       /// protected or private, as a call to the
+       /// public: set_member("__proto__", <anyting>)
+       /// will do just the same
+       ///
+       void set_prototype(as_object* proto);
+       
        /// @{ Common ActionScript methods for characters
        /// TODO: make protected
 
@@ -392,14 +401,6 @@
        ///
        void set_member_default(const std::string& name, const as_value& val);
 
-       /// Set this object's '__proto__' member
-       //
-       /// This is protected to allow character instances to set a prototype,
-       /// since character instances are NOT direct subclasses of as_object
-       /// ( as_object -> character -> specific_character ).
-       ///
-       void set_prototype(as_object* proto);
-
        /// The Virtual Machine used to create this object
        VM& _vm;
 




reply via email to

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