gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/server as_value.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash/server as_value.h
Date: Wed, 25 Jul 2007 16:08:23 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/07/25 16:08:23

Modified files:
        server         : as_value.h 

Log message:
        cast PROPNAME arg to a std::string to allow calling it with a const C 
string in input

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_value.h?cvsroot=gnash&r1=1.58&r2=1.59

Patches:
Index: as_value.h
===================================================================
RCS file: /sources/gnash/gnash/server/as_value.h,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- as_value.h  25 Jul 2007 15:42:48 -0000      1.58
+++ as_value.h  25 Jul 2007 16:08:23 -0000      1.59
@@ -15,7 +15,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-/* $Id: as_value.h,v 1.58 2007/07/25 15:42:48 strk Exp $ */
+/* $Id: as_value.h,v 1.59 2007/07/25 16:08:23 strk Exp $ */
 
 #ifndef GNASH_AS_VALUE_H
 #define GNASH_AS_VALUE_H
@@ -76,12 +76,11 @@
        static inline int isinf_ld (long double x) { return isnan (x - x); }
 #endif
 
-/// Use this macro to obtain a properly-formatted property name
-/// The macro will convert the name to lowercase if the current VM target
+/// Use this methods to obtain a properly-formatted property name
+/// The methods will convert the name to lowercase if the current VM target
 /// is SWF6 or lower
 ///
-#define PROPNAME(x) ( VM::get().getSWFVersion() < 7 ? boost::to_lower_copy(x) 
: (x) )
-
+#define PROPNAME(x) ( VM::get().getSWFVersion() < 7 ? 
boost::to_lower_copy(std::string(x)) : (x) )
  
 
 /// ActionScript value type.




reply via email to

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