CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/07/25 16:16:23
Modified files: . : ChangeLog server : as_value.cpp Log message: * server/as_value.cpp: drop lowercase_if_needed, substitute with the PROPNAME macro. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3826&r2=1.3827 http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_value.cpp?cvsroot=gnash&r1=1.58&r2=1.59 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3826 retrieving revision 1.3827 diff -u -b -r1.3826 -r1.3827 --- ChangeLog 25 Jul 2007 15:42:47 -0000 1.3826 +++ ChangeLog 25 Jul 2007 16:16:22 -0000 1.3827 @@ -1,5 +1,7 @@ 2007-07-25 Sandro Santilli <[EMAIL PROTECTED]> + * server/as_value.cpp: drop lowercase_if_needed, substitute with + the PROPNAME macro. * server/as_value.h: add a PROPNAME macro to perform the lowercase conversion of property names when needed (copies arg) * server/as_environment.h: added some notes about variable name Index: server/as_value.cpp =================================================================== RCS file: /sources/gnash/gnash/server/as_value.cpp,v retrieving revision 1.58 retrieving revision 1.59 diff -u -b -r1.58 -r1.59 --- server/as_value.cpp 9 Jul 2007 13:00:04 -0000 1.58 +++ server/as_value.cpp 25 Jul 2007 16:16:23 -0000 1.59 @@ -52,14 +52,6 @@ // as_value -- ActionScript value type // -static void -lowercase_if_needed(std::string& str) -{ - VM& vm = VM::get(); - if ( vm.getSWFVersion() >= 7 ) return; - boost::to_lower(str, vm.getLocale()); -} - as_value::as_value(as_function* func) : m_type(AS_FUNCTION), @@ -135,8 +127,7 @@ bool gotValidToStringResult = false; if ( env ) { - std::string methodname = "toString"; - lowercase_if_needed(methodname); + std::string methodname = PROPNAME("toString"); as_value method; if ( obj->get_member(methodname, &method) ) { @@ -212,8 +203,7 @@ if ( m_type == OBJECT || m_type == AS_FUNCTION ) { as_object* obj = m_object_value; - std::string methodname = "valueOf"; - lowercase_if_needed(methodname); + std::string methodname = PROPNAME("valueOf"); as_value method; if ( obj->get_member(methodname, &method) ) { @@ -292,8 +282,7 @@ as_object* obj = m_object_value; if ( env ) { - std::string methodname = "valueOf"; - lowercase_if_needed(methodname); + std::string methodname = PROPNAME("valueOf"); as_value method; if ( obj->get_member(methodname, &method) ) { _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit