CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/03/12 18:51:59
Modified files:
. : ChangeLog
server : as_prop_flags.h
Log message:
* server/as_prop_flags.h: add equality and inequality operators.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2613&r2=1.2614
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_prop_flags.h?cvsroot=gnash&r1=1.5&r2=1.6
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2613
retrieving revision 1.2614
diff -u -b -r1.2613 -r1.2614
--- ChangeLog 12 Mar 2007 18:27:40 -0000 1.2613
+++ ChangeLog 12 Mar 2007 18:51:58 -0000 1.2614
@@ -1,5 +1,6 @@
2007-03-12 Sandro Santilli <[EMAIL PROTECTED]>
+ * server/as_prop_flags.h: add equality and inequality operators.
* testsuite/actionscript.all/delete.as: add test verifying that
delete on object references won't affect other references
on the same object; add test to check that a user-defined
Index: server/as_prop_flags.h
===================================================================
RCS file: /sources/gnash/gnash/server/as_prop_flags.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- server/as_prop_flags.h 8 Dec 2006 15:45:42 -0000 1.5
+++ server/as_prop_flags.h 12 Mar 2007 18:51:59 -0000 1.6
@@ -1,5 +1,5 @@
//
-// Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -80,6 +80,16 @@
{
}
+ bool operator== (const as_prop_flags& o) const
+ {
+ return ( _flags == o._flags ) && ( _protected == o._protected );
+ }
+
+ bool operator!= (const as_prop_flags& o) const
+ {
+ return ( _flags != o._flags ) || ( _protected != o._protected );
+ }
+
/// Get "read-only" flag
bool get_read_only() const { return (((_flags &
readOnly)!=0)?true:false); }
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit